摘要: 原符号 < <= > >= 替换符号 &lt; &lt;= &gt; &gt;= 例如:sql如下: select count(1) as total,'111' as key1 from userinfo where lrsj >= #{lrsjq} and lrsj &lt; #{lrsjz} 阅读全文
posted @ 2021-02-24 20:15 云村的王子 阅读(186) 评论(0) 推荐(0) 编辑
摘要: SimpleDateFormat sdfYMD = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.SECOND,0); // 阅读全文
posted @ 2021-02-24 19:57 云村的王子 阅读(13568) 评论(0) 推荐(1) 编辑
摘要: 当在java开发中遇到了Column ‘AAA’ in where clause is ambiguous问题时, 你需要去看看:多表查询的时候不同的表是否出现了相同名称相同的列, 如果存在,你需要在条件中或者查询结果中指定表名, 比如:user表有name,post表有name,而你想查询name 阅读全文
posted @ 2021-02-24 19:47 云村的王子 阅读(418) 评论(0) 推荐(0) 编辑