84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
有12个一样结构的表,分别记录十二个月份的相关信息。用户可以选择起始月份,结束月份,查询信息。表名类似XXXX_2017_01,XXXX_2017_12这样,我得先根据用户传入的月份拼接表名,再用UNION ALL进行查询?但是查询出来的LIST里面就不知道每条记录是属于哪个表的了。MYBATIS应该怎么写好?
光阴似箭催人老,日月如移越少年。
1. If you don’t consider sql injection, you can search the difference between #{} and ${} on Baidu, then upgrade the sql statement to the business level and treat it as business processing. After splicing, use ${} to pass it into the atomic layer 2. Checked 12 times
1. If you don’t consider sql injection, you can search the difference between #{} and ${} on Baidu, then upgrade the sql statement to the business level and treat it as business processing. After splicing, use ${} to pass it into the atomic layer
2. Checked 12 times
光阴似箭催人老,日月如移越少年。