select * from product where customer_id = (delete from product where product_id = 5 and customer_id =1 returning customer_id);错误:“”处或附近的语法错误
但是单独运行delete from product where product_id= 5 and customer_id = 1 returning <em
我在psycopg2 2.7.3中使用python2.7和PostgreSQL9.3,当我试图在参数传递时执行select查询时,它会给出以下错误: psycopg2.ProgrammingError:语法错误在"OR“或”or“附近cur.execute('SELECT * FROM test WHERE voucher= ?, ('RHAT', 'MSO'))psycopg2.ProgrammingErro
is org.hibernate.exception.SQLGrammarException: could not execute statement] with root cause at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1927)
at org.postgre