
sql server
xiaotuzi
兔子喜欢什么,我就喜欢什么。
展开
-
Mysql 5.7 (Windows) root开启远程连接
2. 安装 # 安装mysql服务 sudo apt-get install mysql-server # 安装客户端 sudo apt install mysql-client # 安装依赖 sudo apt install libmysqlclient-dev # 检查状态 sudo netstat -tap | grep mysql 3. 配置r...转载 2020-03-29 17:44:13 · 426 阅读 · 0 评论 -
一次插入多条记录
在mssql可以这样insert into tablefortest(a,b) select 1,2unionselect 3,4unionselect 5,6在mysql可以这样insert into tablefortest(a,b)values(1,2) ,(3,4) ,(5,6)原创 2010-04-11 17:46:00 · 431 阅读 · 0 评论 -
改变null not null
NULL NOT NULL指定该列是否可接受空值。不允许空值的列只有在指定了默认值的情况下,才能用 ALTER TABLE 语句向表中添加。添加到表中的新列要么允许空值,要么必须指定默认值。如果新列允许空值,而且没有指定默认值,那么新列在表中每一行都包含空值。如果新列允许空值并且指定了新列的默认值,那么可以使用 WITH VALUES 选项在表中所有现有行的新列中存储默认值。如果新列不转载 2010-04-17 12:34:00 · 1166 阅读 · 0 评论 -
修改主键identity
只能先删除再添加 alter table test1 drop column sid go alter table test1 add sid int IDENTITY(1,1)转载 2010-04-16 16:50:00 · 525 阅读 · 0 评论