摘要: 1.DDL(Data Definition Language)数据库定义语言statements are used to define the database structure or schema. DDL是SQL语言的四大功能之一。用于定义数据库的三级结构,包括外模式、概念模式、内模式及其相互 阅读全文
posted @ 2017-03-24 17:34 奋斗的少年WH 阅读(260) 评论(0) 推荐(0)
摘要: 1) 增加列 语法: alter table 表名 add 列名 类型(长度) 约束; 2) 修改现有列类型、长度和约束 语法:alter table 表名 modify 列名 类型(长度) 约束; 3) 修改现有列名称 语法:alter table 表名 change 旧列名 新列名 类型(长度) 阅读全文
posted @ 2017-03-24 17:32 奋斗的少年WH 阅读(159) 评论(0) 推荐(0)
摘要: 0 阅读全文
posted @ 2017-03-24 17:26 奋斗的少年WH 阅读(327) 评论(0) 推荐(0)
摘要: Delete, drop table, truncate有什么区别? delete 删除表中数据,可以删除一条或多条记录,可以回滚,记录操作日记,是DML truncate table,一次性清空表中全部数据, 不可以回滚,不记录操作日记,是DDL drop table删除表结构,不单清除表中数据, 阅读全文
posted @ 2017-03-24 17:18 奋斗的少年WH 阅读(273) 评论(0) 推荐(0)