- 图形界面创建表
![](https://img.haomeiwen.com/i9538421/936796f4edd4ca63.png)
![](https://img.haomeiwen.com/i9538421/84effaedc4f494b0.png)
![](https://img.haomeiwen.com/i9538421/76171d7e1943090e.png)
- SQL 脚本创建表
语法
CREATE TABLE userinfo1(
ID int PRIMARY KEY NOT NULL,
name varchar(10) NOT NULL,
age int NULL --默认为 NULL, NULL 可以不写
);
![](https://img.haomeiwen.com/i9538421/1211b9217be9fdca.png)
![](https://img.haomeiwen.com/i9538421/91397812fa8e34e3.png)
![](https://img.haomeiwen.com/i9538421/f5e31357153586e1.png)
语法
CREATE TABLE userinfo1(
ID int PRIMARY KEY NOT NULL,
name varchar(10) NOT NULL,
age int NULL --默认为 NULL, NULL 可以不写
);
本文标题:SQL Server 2016 表操作:表创建
本文链接:https://www.haomeiwen.com/subject/hjfzjftx.html
网友评论