美文网首页
mysql语法

mysql语法

作者: 技术创造未来 | 来源:发表于2018-09-26 14:42 被阅读0次

登录:mysql -u root -p 

mysql-login

一、进去库:use center;

二、显示当前库的所有表:show tables;

三、查询字段:

select customer_id from notification_customernotification where id=1784229;

四、查看表table_name有哪些字段:

show create table <表名>;

五、删除表中某个字段,使用drop关键字。

基本的语法为:alter table <表名> drop column <字段名>;

相关文章

网友评论

      本文标题:mysql语法

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