2016年8月23日
摘要: 之前没有碰到过这种类型的to_timestamp,想要新增一条数据时,发现数据类型为to_timestamp(6) 直接for update此表,复制已有的时间,报错‘月份错误’找不到解决方法。 只能重新更新此字段 update 表名 set 字段名=(to_timestamp('23-8月-16 阅读全文
posted @ 2016-08-23 15:42 88272950 阅读(4888) 评论(0) 推荐(0) 编辑
摘要: Mongodb 1、Mongodb优化: a、语句优化可能通过Profile找到执行时间长的语句。db.getProfiling.Level()来获取profile级别 db.system.profile.find()查看profile记录。 b、找到语句后,通过explain来解析这条语句,可以看 阅读全文
posted @ 2016-08-23 13:44 88272950 阅读(384) 评论(0) 推荐(0) 编辑