明净

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  302 随笔 :: 1 文章 :: 13 评论 :: 42万 阅读

随笔分类 -  Mysql

摘要:select TIMESTAMPDIFF(DAY, '2015-04-20 00:00:00', '2015-04-20 23:59:59');# 只要不足24小时 为0天 select TIMESTAMPDIFF(DAY, '2015-04-20 10:00:00', '2015-04-21 10 阅读全文
posted @ 2017-12-29 11:03 明净 阅读(212) 评论(0) 推荐(0) 编辑

摘要:1、查询数据库中所有表名select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';2、查询指定数据库中指定表的所有字段名column_nameselec 阅读全文
posted @ 2017-10-11 09:56 明净 阅读(156) 评论(0) 推荐(0) 编辑

摘要:在Mysql集群中创建用户时、出现如下错误! mysql> create user 'testuse'@'localhost' identified by '111111'; ERROR 1290 (HY000): The MySQL server is running with the --ski 阅读全文
posted @ 2017-07-29 14:21 明净 阅读(2421) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示