Skip to content

DELETE FROM table with self-referencing FK #7551

Closed Answered by asfernandes
fdcastel asked this question in Q&A
Discussion options

You must be logged in to vote

It's well know problem, Firebird checks integrity after each row is deleted instead of after the full statement execution.

One workaround is ORDER BY clause that can be used in DELETE and UPDATE.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@mrotteveel
Comment options

@mrotteveel
Comment options

@fdcastel
Comment options

@fdcastel
Comment options

@mrotteveel
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fdcastel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants