mysql
chenjiebin999
这个作者很懒,什么都没留下…
展开
-
2020-12-19
mysql 获取连续的日期 select (curdate() + interval(cast(mysql.help_topic.help_topic_id as signed) -2 ) day) as day from mysql.help_topic having (day <= date_format(curdate(),'%y-%m-%d')) order by day desc 备注:2表示当前天向前推2天的日期。结果如下 ...原创 2020-12-19 13:24:31 · 144 阅读 · 1 评论 -
mysql 查询库中所有表名称及表中所有字段
一、查询数据库中所有表名 方法一: select table_name from information_schema.tables where table_schema='zhhb_vocs_service' and table_type='base table'; 方法二: select table_name from information_schema.tables where table_schema=(select database()); 二、查询指定数据库中指定表的所有字段名column原创 2020-07-08 08:57:40 · 366 阅读 · 0 评论