读书人

表的创办、数据添加、修改

发布时间: 2013-03-01 18:33:02 作者: rapoo

表的创建、数据添加、修改

?

? ? ? ? ?(2)


表的创办、数据添加、修改
?三、表中列的修改

? ? ? ? 时间获取的格式:http://www.cnblogs.com/ajian/archive/2009/03/25/1421063.html

? ? ?

?列的添加

表的创办、数据添加、修改
?列的属性修改

alter table Student

modify stu_type number

列重命名

alter table Student

? ? ? ? rename column stu_join to stu_close

表重命名

alter table Student rename to yt_Student

列的删除

alter table Student

drop column Stu_open

四、表中记录的修改

表的创办、数据添加、修改
? 删除里面的数据

delete from Student ?where stu_id='4'

删除整个数据

delete from table_name

delete * from table_name

truncate table table_name ? (速度快,释放空间)

五、表的删除

drop table table_name

读书人网 >其他数据库

热点推荐