摘要:
一、关联查询修改表数据: UPDATE tms_test_rms,spms_project_view SET tms_test_rms.isRead = 1 where tms_test_rms.code = spms_project_view.code and spms_project_view. 阅读全文
摘要:
在开发过程中我们经常会使用分页,核心技术是使用limit进行数据的读取,在使用limit进行分页的测试过程中,得到以下数据: select * from news order by id desc limit 0,10耗时0.003秒select * from news order by id de 阅读全文
摘要:
一、情景一: git pull origin develop 后报:Your branch and 'origin/develop' have diverged, and have 2 and 1 different commit each, respectively. 解决方法如下三步: (1) 阅读全文
摘要:
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 如下连接: https://b 阅读全文
摘要:
1.对于连续的数值,能用between 就不用 in 例如:select id from t between 1 and 3 2. 3.避免对字段进行函数运算 4.用exists代替in 注意: in 和 exists的区别: 如果子查询得出的结果集记录较少,主查询中的表较大且又有索引时应该用in, 阅读全文