[insert into shopping_cart (name, image, user_id, dish_id, setmeal_id, dish_flavor, number, amount, create_time)
values (‘馋嘴牛蛙’,‘https://ztf-webjava.oss-cn-shenzhen.aliyuncs.com/f6607de3-7090-4475-97ed-cf75ab4b4cd3.jpg’,4,64,** BYTE ARRAY DATA , BYTE ARRAY DATA **,1,88.00,‘2025-03-04 17:58:23.821194’)]
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '** BYTE ARRAY DATA **,** BYTE ARRAY DATA **,1,88.00,'2025-03-04 17:58:23.821194'' at line 2
做项目的时候写到这里插入空值一直报错
数据库本身操作是没问题的,字段值可以是null
到mybatis中就有问题,查阅资料说是要定义jdbctype我也定义了,但还是报错,有没有大佬指点。
我写的代码如图。