SQL syntax error when there is no error - SQL Error [156] [S0001]: Incorrect syntax near the keyword 'from'. #36310
-
DescriptionSQL Error [156] [S0001]: Incorrect syntax near the keyword 'from'. Resulting from this query: --case when SUM(DATEDIFF(SECOND, DepartureBest, ArrivalBest)) % 3600 / 60 <10
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Could you do the following actions? It will help us understanding your issue |
Beta Was this translation helpful? Give feedback.
-
Also could you try select whole query and then press Run? Is it still gives the error if you execute this way? |
Beta Was this translation helpful? Give feedback.
-
Ahhh, thank you! When I select the whole query and press Run it executes successfully. Also, since I'm very new to DBeaver I had never used the Execute script button. If I use that it executes successfully too (with the extra new lines in the query). I discovered is that if I remove all the blank lines it executes successfully using the run query button. |
Beta Was this translation helpful? Give feedback.
-
By default, DBeaver treats a new line as a statement separator. You can change this behavior in |
Beta Was this translation helpful? Give feedback.
By default, DBeaver treats a new line as a statement separator. You can change this behavior in
Preferences->Editors->SQL Editor->SQL Processing->Blank line is a statement delimiter
. Does it solve the issue?