随笔分类 -  问题积累----MySql

摘要:SELECT CONVERT(zhifubaoAccount,CHAR) as account,CONVERT(userTrueName,CHAR) as userName,CONVERT(money,CHAR) as cashMoneyFROM log where userId='567' ORD 阅读全文
posted @ 2017-08-15 15:43 21heshang 阅读(198) 评论(0) 推荐(0)
摘要:mysql:问题:Column 'id' in field list is ambiguous原因:两个表中都有id,它不知道查哪一个表里面的ID。解决方案:主键的查询须用别名点的方式获取。定义不同的别名,主键必须用别名标明是哪个表的主键。 select aaa.id diaryId, userId 阅读全文
posted @ 2017-08-08 17:45 21heshang 阅读(1299) 评论(0) 推荐(0)
摘要:原因:MySQL在高版本需要指明是否进行SSL连接,解决方案: 在jdbc.properties MySQL连接信息jdbc.url中加入ssl=true或false即可,如下所示: jdbc.url=jdbc:mysql://localhost:3306/eaju?characterEncodin 阅读全文
posted @ 2017-02-06 11:47 21heshang 阅读(6413) 评论(2) 推荐(0)