错误警告
Wai336
这个作者很懒,什么都没留下…
展开
-
mysql插入中文字符报错:ERROR 1366 (HY000): Incorrect string value: ‘\xE5\xB0\x8F\xE6\x98\x8E‘ for column
2、登录mysql,选择所要用的数据库(如db1)3、进行表字符集修改,chartset为utf8。如:(user是所要插入中文字符的表)如:(user是所要插入中文字符的表)1、以管理员身份打开cmd。4、进行字段字符集修改。原创 2024-07-01 22:37:06 · 142 阅读 · 0 评论 -
Subquery returns more than 1 row
SQL中出现该错误可在下图标黄处括号前添加 any。原创 2023-12-01 14:26:36 · 369 阅读 · 1 评论 -
error: non-static variable this cannot be referenced from a static context
若java编译过程中出现该错误,可在标黄 class 前添加 static。原创 2023-11-30 10:31:52 · 677 阅读 · 0 评论 -
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘sql_judger
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sql_judger.grade.GName' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_bySQL中出现该错误,可将图中两个标黄部分统一原创 2023-11-27 11:00:13 · 408 阅读 · 1 评论 -
JAVA: This method must return a result of type String
解决方法:将最后一个else if(score < 60) 更改为else,删去if( ),如下图。原创 2023-11-08 13:44:44 · 219 阅读 · 1 评论 -
VS2022使用strlen报错
解决方法:添加头文件#include<string.h>原创 2023-09-02 17:40:38 · 525 阅读 · 0 评论 -
error C4996: ‘getch‘: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ con
解决方法:将 getch() 换成 _getch()。原创 2023-08-24 20:16:51 · 304 阅读 · 1 评论 -
返回值被忽略:“scanf”。
解决方法:在顶部添加代码:#pragma warning(disable:4996)原创 2023-08-24 12:31:07 · 1844 阅读 · 1 评论