数据库(3)

DDL
  a.create table (创建表)
    语法:create table 表名(列名 列数据类型...)
      eg:create table stu(
        id bigint primary key,
        name varchar(20),
        phone varchar(20)
      );
  b.truncate table (截断表)
    语法:truncate table 表名;(删除表中所有记录)
      eg: truncate table stu;
  c.drop table(删除表)
    语法:drop table 表名;
    eg: drop table stu;

posted @ 2017-06-12 21:24  眼泪,还是流了  阅读(106)  评论(0编辑  收藏  举报