mysql问题总结

1. You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.”
缘由是在safe mode下,where条件必须使用key column,取消限制 SET SQL_SAFE_UPDATES=0;

html

2. MYSQL中group_concat有长度限制,默认1024,详细参考 http://blog.csdn.net/catoop/article/details/41805437mysql

3. 分页查询如:select* from (select * from tableA order by  time)temp_table left join tableB on ....... limit offset,rows;sql

 使用的mysql版本为5.7.14,遇到两个坑,(1)left join 会打乱原查询顺序,(2)order by的条件为时间戳而且有相同数据时,limit条件不一样时查询结果会错乱oracle

 

 

相似oracle中的decode函数函数

field函数oop

 http://blog.csdn.net/lxz3000/article/details/6173873.net

elt函数code

http://www.cnblogs.com/lazyx/p/5577105.htmlhtm

case函数也可实现相似功能 blog

相关文章
相关标签/搜索