创建数据表的sql语句 [T.docVIP

  • 10
  • 0
  • 约2.97千字
  • 约 10页
  • 2020-09-03 发布于江苏
  • 举报
创建数据表的sql语句 [T 使用主键约束 主键不允许重复也不允许有空值 --1单字段主键 IF OBJECT_ID (“testtable”, “U”) IS NOT NULL DROP TABLE testtable; CREATE TABLE testtable ( col1 varchar(10), col2 int, col3 datetime, col4 numeric(10,2), col5 xml, col6 image, primary key(col1) ); --2多字段主键 IF OBJECT_ID (“testtable”, “U”) IS NOT NULL DROP TABLE testtable; CREATE TABLE testtable ( col1 varchar(10), col2 int, col3 datetime, col4 numeric(10,2), col5 xml, col6

文档评论(0)

1亿VIP精品文档

相关文档