这段代码在我有更多经验的 Sqlite 中工作。我无法弄清楚这里出了什么问题。如果它有帮助SELECT 1 FROM Post WHERE body = 'a';
不会给我一个语法错误,但这确实
select 1 WHERE NOT EXISTS (SELECT 1 FROM Post WHERE body = 'a' ) ;
代码:
INSERT INTO `Post` (
`name`,
...
`date`) select
@0,
...
@6 WHERE NOT EXISTS (SELECT 1 FROM Post WHERE body = @7 )
错误
near 'WHERE NOT EXISTS (SELECT 1 FROM Post WHERE body = 'text' )' at line 15