Skip to content

Tag: syntax-error

Insert date now + interval 2 days

for some reason I am getting a syntax error: From what I’ve read this should be the correct syntax. Answer The interval value needs to be enclosed in single quotes: The specification ‘2 days’ as a single string is a Postgres extension to the SQL standard. A SQL standard compliant way of writ…

Create table from a table in SQL Server

Below is the query I tried to execute in SQL Server: I get this error: Msg 102, Level 15, State 1, Line 1 Incorrect syntax near ‘(‘ I did some research on google to understand and isolate the error, but, failed to do so. Could anyone please help me understand the error. Thank you Answer SQL-Server…

Where is my syntax error in this SQL request?

I’m getting a syntax error near WHERE tbkay.keyword = ‘ipsum’ in the following request (using phpmyadmin): I don’t get it. Answer You are not using an ON clause after each join: I also changed the joins to INNER joins because the WHERE clause returns only matching rows. If you want to …