SQL-Server2008操作命令解析

Create --创建

datebase --数据库

table --表

create datebase xxxxxxx  --创建xxxxxx数据库

create table xxxx (。。。。。。)  --创建xxxx数据表(表中各列属性)

Alter --修改

drop --删除(文件,如整个数据库或表)

select --选择

from --来自

select * from table   --列出table中各字段数据  *代表所有字段。

use --使用

exec --执行

delete --删除表中数据

insert --向表中插入数据

truncate --删除表中所有数据,并重置标识符

猜你喜欢

转载自blog.51cto.com/11025618/2343822