【发布时间】:2022-07-14 23:10:36
【问题描述】:
您好,希望您玩得愉快,我正在使用 python 和 SQL 制作应用程序,但在 SQL 中遇到语法错误,您能帮忙吗?
self.mycursor.execute(f'''CREATE VIEW [usable products] AS
SELECT * FROM products
WHERE {str(self.counts.value())}> (SELECT count FROM products)
''')
错误是:
ight syntax to use near '[usable products] AS
SELECT * FROM products
WHER' at line 1
version for the right syntax to use near '[usable products] AS
SELECT * FROM products
WHER' at line 1
谢谢!
-
请标记您正在使用的RDBMS,它的SQL方言不同。