zoukankan      html  css  js  c++  java
  • mysql基础操作语言

    一、查看数据库 show databases;

    二、创建数据库 creat database 数据库名;

    三、切换数据库 use 数据库名;

    四、创建数据表 create table 表名();

    五、查看表 show tables;

     

     六、修改数据表表名 alter table 原表名 rename to  新表名;

     七、修改数据库字段约束 alter table 数据表名 modify 字段名  新的数据类型【新的数据类型】;

    八、修改数据库字段 alter table 数据表名 change 旧的字段名 新的字段名 新的数据类型【约束】;

    九、查看表字段 desc 表名;

    十、删除数据表  drop table 表名;

  • 相关阅读:
    NSString拼接字符串
    2020/4/26
    2020/4/25
    2020/4/24
    2020/4/22
    2020/4/22
    2020/4/20
    2020/4/19
    2020/4/18
    2020/4/17
  • 原文地址:https://www.cnblogs.com/hc1020/p/13344008.html
Copyright © 2011-2022 走看看