![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
Rechard0121
这个作者很懒,什么都没留下…
展开
-
Mysql 常用命令(一)
查询表结构:1:desc table_name;2: show columns from table_name;查询引擎1:show engines;查询用户1:select user();查询版本号1:select version();查询自动提交1:select @@autocommit;原创 2013-08-07 09:21:54 · 859 阅读 · 0 评论 -
mysql 常用命令(二)
按字段排序1:select * from user where id between 1 and 7 order by id [desc | asc ]2:select * from user where id between 1 and 7 order by field('id', 3,1,2,6,4,7,5);原创 2013-08-08 16:26:18 · 634 阅读 · 0 评论