医道艳途,kuai365,邹越演讲视频
1.创建数据库表
--使用哪个数据库,如果不写这一句是默认的数据库,也可以用鼠标选当前数据库 use testdb --创建表 create table tablename ( --id表示字段名 --int 数据类型 --primary key 主键 --not null 非空 --identity(1,1)初始值是1 每次自增长1 id int primary key not null identity(1,1), --unique 唯一 name varchar(20) not null unique )
2.删除表
drop table 表名
3.修改表结构
--增加列
alter table 表名
add 列名 类型
--删除列
alter table 表名
drop cloumn 列名
--修改列,修改列类型
alter table 表名
alter column 列名 type
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
数据库SQL---数据库、基本表、视图、索引的定义、修改、删除
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (上)
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (下)
网友评论