创建SQL基本语句
摘要:1,创建数据库:CreateDatabase 数据库名称; 例题:创建数据库:名称为B2C; 解:create database B2C2,创建数据表:Create Table 表名; 例题:创建学生表:表名为Student 解:create table Student 3,创建外键:alter table 外键表 add constraint 外键名称 foreign key (外键列名称) references 引用表名称(主键);4,创建索引:create [unique(唯一索引)][clustered(聚集索引)][nonclustered(非聚集索引)] index 索引名 表名(
阅读全文
posted @
2011-08-02 18:30
码农界的卧底
阅读(541)
推荐(0)