美文网首页
mysql使用笔记

mysql使用笔记

作者: 阿呆zy | 来源:发表于2017-02-22 11:45 被阅读13次
  • mysql常用命令汇总

  set names  'utf8'; #修改msyql字符集编码

  alter table 'table_name' [add/alter/drop] [column] 'column_name' [column_type] # 在已有表中添加、删除、新增列

  alert table 'table_name' modify [column] 'property' # 修改table_name的column列的属性

  show create table 'table_name'; #查看表生成的DDL  

  delete from table_name; #删除表内容

  select * from 'table_name' \G; 格式化输出查询结果

相关文章

网友评论

      本文标题:mysql使用笔记

      本文链接:https://www.haomeiwen.com/subject/weapwttx.html