SQL常用语法分析和总结.docxVIP

  • 1
  • 0
  • 约2.03万字
  • 约 20页
  • 2023-05-12 发布于上海
  • 举报
/*1433端口,是SQL Server默认的端口, SQL Server服务使用两个端口:TCP-1433、UDP-1434。其中用于供SQL Server对外提供服务, 1434用于向请求者返回SQL Server使用了哪个TCP/IP端口。*/ --********************************************************************* ****创建新表 create table tableok ( col1 int, col2_notnull int not null, col3_default nchar(1) not null default(男), --默认男col4_default datetime not null default(getdate()), --默认得到系统时间 col5_check int not null check(col5_check=18 and col5_check=55), --添加约束,数据值在到之间 col6_check nchar(9) not null check(col6_check like msd0902[0-9][^6-9]),--添加约束,数据值前位必须是msd0902? ,倒数第两位可以是-9 中任意一个数字,最后一位不是-9之间的数字。 cola_primary

文档评论(0)

1亿VIP精品文档

相关文档