当前位置:Gxlcms > 数据库问题 > SQL修改表结构

SQL修改表结构

时间:2021-07-01 10:21:17 帮助过:13人阅读

		--(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 

  

SQL修改表结构

标签:ble   tab   数据类型   highlight   div   col   --   rop   数据   

人气教程排行