SqlDelete query text misplaced bracket #7126
Replies: 1 comment 4 replies
-
use |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks!
I'm getting a SQL syntax error when using a SqlDelete.
I have three tables
I am trying to write a custom SqlDelete that avoids foreign key deletions, like so:
I'm getting an error
Incorrect syntax near the keyword 'SELECT'. Incorrect syntax near ')'.
I checked the SQL it was generating, and I get this:
This seems to be placing the bracket in the wrong place.
What I'm expecting to see is this
Is my syntax incorrect, or is the NotIn putting the brackets in the wrong place?
Or has anyone got an idea of how I could achieve this?
Thanks in advance!
Edward
Beta Was this translation helpful? Give feedback.
All reactions