创建表、视图、索引的sql语句如下:

CREAT TABLE (列名,数据类型,约束)

create view(创建视图)

create index (创建索引)

  1、primary key(主键)

  2、unique (唯一性)

  3、foreign key references 表名(列名)

  4、check(约束表达式)

一般unique 要和not null连着使用

 

 

相关文章:

  • 2021-12-07
  • 2021-12-01
  • 2021-09-14
  • 2021-11-02
  • 2021-12-22
  • 2021-10-09
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案