Skip to content
Advertisement

What is wrong with my stored procedure SQL query on PostgreSQL?

I tried many times with or without the semicolon but still shows me the error message.

ERROR: syntax error at or near “INSERT” LINE 13: INSERT INTO Advertisement(ad_id, business_id, requested_on… ^ SQL state: 42601 Character: 712

I am sure the table constraint and sequence are all correct but just can not figure out what is wrong with this query.

Advertisement

Answer

I don’t think your parentheses match:

You have two open parens after VALUES.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement