摘要: 1、SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名'; 2、复制结果集运行即可(如使用工具则直接点结果集即默认全部选中可直接复制). 阅读全文
posted @ 2018-05-18 12:01 Arno92 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 时间转字符串 select date_format(now(), '%Y-%m-%d'); #结果:2016-01-05 时间转时间戳 select unix_timestamp(now()); #结果:1452001082 字符串转时间 select str_to_date('2016-01-02 阅读全文
posted @ 2018-05-18 11:58 Arno92 阅读(69) 评论(0) 推荐(0) 编辑