上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: 首先,我承认我的标题起的有点霸气,一点都不像淡淡的扯的感觉。 1.我和楼下共用一个无线路由器,自从我搬到楼上后,我的笔记本就很少连到无线。为了便于描述,我们的无线SSID就叫test吧;其他人家的无线就叫others吧。 我一直以为是距离的问题,极度偶尔才能连上test,绝大多少都搜不到test;其 阅读全文
posted @ 2014-07-22 19:18 cnmarkao 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 在my.ini中把character_set_server修改为latin1,然后使用Workbench连接到MySQL,set names latin1;set names latin1的效果等同于同时设定:set character_set_client=’latin1’;set charact... 阅读全文
posted @ 2014-07-21 10:05 cnmarkao 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 环境:Windows 8.1+MySQL 5.6.19首先要说明的是Windows下MySQL的my.ini所在位置为:盘符\ProgramData\MySQL\MySQL Server 5.6下,也就是下图的Data Path下,如果是系统盘,ProgramData的文件夹是隐藏的;非系统盘此文件... 阅读全文
posted @ 2014-07-20 23:49 cnmarkao 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: SQL Server主键的写法:--列级create table dept(dept_no int primary key,dept_name nvarchar(20) not null)--表级create table dept(dept_no int not null,dept_name nva... 阅读全文
posted @ 2014-07-17 16:50 cnmarkao 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: SQL Server中主外键的定义:1.create table dept(dept_no int primary key,dept_name nvarchar(50) not null)insert into dept values(10,'IT'),(20,'Finance'),(30,'Eng... 阅读全文
posted @ 2014-07-16 15:11 cnmarkao 阅读(3013) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.cnblogs.com/Ryan_j/archive/2011/04/03/2004428.html重命名数据库很简单,选择数据库--右键--重命名数据库或者sp_renamedb 'oldDB' ,'newDB'但是你再新建的相同名字的数据库就会报错,提示数据库已经... 阅读全文
posted @ 2014-07-16 10:46 cnmarkao 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 1.开始安装MySQL 5.6,蛋疼的开始下载MySQL 5.6。如果你和我一样不打算深入了解MySQL,一定要下载MSI格式的安装文件,下载ZIP Archive是个噩梦的开始,我作了大半天的噩梦。Archive格式是类似安装完成后的文件,无需安装,需手动修改里面的配置文件。我还是习惯下一步下一步... 阅读全文
posted @ 2014-07-14 10:46 cnmarkao 阅读(3332) 评论(0) 推荐(0) 编辑
摘要: 创建一个表create table testdate1(name nvarchar(50),dtime datetime)goinsert into testdate1 values('x11',''),('x12','1900-01-01 00:00:00.000')goselect * from... 阅读全文
posted @ 2014-07-10 14:52 cnmarkao 阅读(708) 评论(1) 推荐(0) 编辑
摘要: 一个数据库中可能有很多表,而我想全部删除,如果一个一个手动删除太麻烦而且浪费时间。涉及两个问题:1.如何知道这个数据库里有哪些表?2.如何把这些表名读取出来?这两个问题解决了,就方便多了。第一个问题:select name from sysobjectswhere xtype='U'sysobjec... 阅读全文
posted @ 2014-07-08 16:23 cnmarkao 阅读(2401) 评论(1) 推荐(0) 编辑
摘要: 统计某个时间点前的数据,比如我有10W条数据,包括加班的数据,但我要统计下午5:00前的数据。你第一时间想到的是什么方法呢? 表:tableA 表示时间的字段名称:alltime,字段类型为nvarchar()或者datetime,smalldatetime 以简单的smalldatetiem为例吧 阅读全文
posted @ 2014-07-03 16:03 cnmarkao 阅读(211) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页