mysql数据库问题
噢!不杰克
这个作者很懒,什么都没留下…
展开
-
MySQL统计查询,日期查询
MySQL统计查询,日期查询#统计查询某一个类型共有几人#第一种写法lowSELECT COUNT(*) AS '1' FROM subscribe s WHERE AUDIT_STATUS='1';SELECT COUNT(*) AS '4' FROM subscribe s WHERE AUDIT_STATUS='4';SELECT COUNT(*) AS '8' FROM subscribe s WHERE AUDIT_STATUS='8';#第二种写法 使用sum函数一般般SEL原创 2021-10-19 17:12:58 · 208 阅读 · 0 评论 -
MySQL关于date插入更新操作出现的问题
使用sql语句时date类型如何插入数据Error Code: 1292. Incorrect date value: ‘1987’ for column ‘checkindate’ at row 1我个人觉得有用简单的方法:日期用单引号括起来,eg:update bedmanage,patient set bedmanage.bedmessage='测试',floor_id=1,patient.checkindate='2030-12-31',patient.checkenddate='2006-原创 2020-06-02 10:44:57 · 276 阅读 · 0 评论 -
MySQL更新时出现incorrect DOUBLE Truncated incorrect DOUBLE
MySQL更新时出错 Truncated incorrect DOUBLE value: ‘测试’翻译:截断不正确的双精度值:“investory”出错语句:update bedmanage,patient set bedmanage.bedmessage='测试'and floor_id=1 and patient.checkindate=2005-12-02 and patient.checkenddate=200610-02 where patient.fileno=bedmanage.file原创 2020-06-02 10:22:52 · 386 阅读 · 0 评论 -
#mysql多表查询查询不出数据,模糊查询查询不出数据。
mysql多表查询,语句对但是没有数据。原因:①可能是你的表中没有数据②你关联表时所使用的字段类型不一样或者这个字段没有对应的值,就是说你的这个字段跟你关联的表的字段不一样,它自然就找不到了。没有报错的问题是最难解决的,笑哭。...原创 2019-11-04 15:03:55 · 2413 阅读 · 0 评论 -
Error Code: 1175. You are using safe update mode and you.......
mysql数据库更新语句的bug报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences ->...原创 2020-04-02 14:55:49 · 253 阅读 · 0 评论