这是我在数据库的定义
grade int 4 0
class char 50 0
id char 50 0
name char 50 0
english float 8 0
math float 8 0
chinese float 8 0
summark float 8 1(允许为空)
average float 8 1(允许为空)
执行语句:
IF NOT EXISTS (SELECT *
FROM student
WHERE grade = 1 AND class = '503' AND id = '50333' AND
name = 'kkkk' AND english = 60 AND math = 70 AND chinese = 80)
INSERT
INTO student
VALUES (1, '503', '50333', 'kkkk', 60, 70, 80)
出错:查询计算器不支持IF SQL构造
出错:插入出错:列名或所提供值的数目与表定义不匹配