码迷,mamicode.com
首页 > 数据库 > 详细

SQL制表

时间:2015-03-19 21:54:52      阅读:165      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!