首页 > 数据库技术 > 详细

SQL制表

时间:2015-03-19 21:52:22      阅读:327      评论:0      收藏:0      [点我收藏+]

use School
if exists (select*from sysobjects where name=‘Teacher‘)
drop table Teacher
go
create table Teacher
(
Id int primary key identity(1,1), --参数第一个种子 第二个增量
Name nvarchar(50) not null, --not null 标记不能为空 如果没有标记 not null 说明可为null
Gender char(2) not null,
Age int not null,
Salary money null,
Birthday datetime
)

SQL制表

原文:http://www.cnblogs.com/dianshen520/p/4351830.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!