mysql指令

Contributor:游客40987699 Type:中英混合 Date time:2018-08-10 15:22:14 Favorite:46 Score:-1.5
返回上页 Report
请选择举报理由:




Collection Modify the typo
create table 表名(字段1名 字段1类型,字段2名 字段2类型); 创建表 例:create table person(name varchar(10),age int);
show tables; 查询所有表
show create table 表名; 查询单个表详情
desc 表名; 查看表字段信息
drop table 表名; 删除表
rename table 原名 to 新名; 修改表名
alter table stu engine=myisam charset=gbk; 修改引擎和字符集
alter table 表名 add 字段名 字段类型; 最后添加表字段
alter table 表名 add 字段名 字段类型 first; 最前面添加表字段
alter table 表名 add 字段名 字段类型 after 字段名xxx; 在xxx后面添加表字段
alter table 表名 drop 字段名; 删除字段
alter table 表名 change 原字段名 新字段名 字段类型; 修改字段名称的类型
alter table 表名 modify 字段名 字段类型 first/(after xxx);修改字段类型和位置
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:
Difficulty:
quality:
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!

This paper typing ranking TOP20

登录后可见

用户更多文章推荐