CASE
WHEN NOT EXISTS(SELECT content FROM table1 WHERE username='amir' AND content = "something")
THEN UPDATE users SET Score=Score+1 WHERE username='amir'
INSERT INTO table1 (username,content)VALUES('amir',"somthing")
END;
为什么这个查询不起作用以及如何修复它,如果有更好的方法可以做到这一点,那该怎么办?