摘要:
Use AbstractRoutingDataSource to dynamicly switch datasources, see http://spring.io/blog/2007/01/23/dynamic-datasource-routing. PS: note the use of Th 阅读全文
摘要:
报错信息: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire meth 阅读全文
摘要:
http://www.cnblogs.com/linjiqin/archive/2013/05/27/3101694.html http://www.cnblogs.com/M-LittleBird/p/5902850.html 阅读全文
摘要:
资料来源于网络,仅供参考学习。 CREATE TABLE test(a INT,b INT,c INT,KEY idx(a,b,c)); 优: SELECT * FROM test WHERE a=10 AND b>50;差: SELECT * FROM test WHERE b>50; 优: SE 阅读全文
摘要:
SQL 中的 Join 有以下几种类型: 1、Cross Join 交叉连接,没有条件筛选,返回笛卡尔积。 如果以 ,(逗号)分隔表名进行查询如 select * from tbl_name1, tbl_name2 一样返回笛卡尔积。 2、Inner Join 内连接,必须加 on clause,否 阅读全文
摘要:
本文讨论的是 MySQL 5.7。 1、混用 * 和列名会产生解析错误,要避免这个错误,要使用 tbl_name.* 的格式。 2、where 子句中不能使用 select 中定义的别名,因为 SQL 先解析 where 再解析 select。 3、移除字段首尾的空格:update tble_nam 阅读全文
摘要:
Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of 阅读全文
摘要:
原文出处:http://tech.pro/tutorial/1555/10-easy-steps-to-a-complete-understanding-of-sql(已经失效,现在收集如下) Too many programmers think SQL is a bit of a beast. I 阅读全文