SQL修改表结构

		--(1)向数据库Student表中添加Name字段
			use MR_NXT
			alter table student
			add Name char(20)
		--(2)将Student表中Name的字段的数据类型修改为char(50)
			use MR_NXT
			alter table student
			alter column Name char(50)
		--(3)删除Student表中Name字段
			use MR_NXT
			alter table student
			drop column Name 

  

猜你喜欢

转载自www.cnblogs.com/chaonuanxi/p/10018078.html