mysql的一些常用命令

2017-01-16 21:28:27

显示数据库列表: show databases;
创建库: create database 库名;
给表改名:rename table ztemp to ztemp4;
删除表 : drop table 表名;
修改字段属性: alter table bbabase change news_id id varchar(5) not null;
在表中增加一字段: alter table bbabase add leave_time datetime not null ;

发表评论:

Powered by PHP 学习者(mail:517730729@qq.com)

原百度博客:http://hi.baidu.com/ssfnadn

备案号:闽ICP备17000564号-1

开源中国 PHPCHINA