查询列名和注释
select column_name, column_comment from information_schema.columns where table_schema ='数据库名' and table_name = '表名';
简单描述表结构
desc tabl_name;
使mysql查询时区分大小写
在 MySQL 中,默认情况下,字符串比较是不区分大小写的。使用 BINARY 关键字可使查询区分大小写,如:
SELECT * FROM emlog_blog WHERE BINARY title LIKE '%phpat.com%';
评论交流 (0)
暂无评论,来坐第一个沙发吧~