New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extended SQL UPDATE, DELETE syntax [CORE758] #1135
Comments
Commented by: Alice F. Bird (firebirds) Date: 2005-11-14 11:22 I would like to ask if this will be done before finall FB 2.0 ? |
Commented by: Alice F. Bird (firebirds) Date: 2005-11-14 11:22 Your Feature Request has already been been recorded in the Additionally, we currently don't use the SF Feature Request Thanks for your interest in the project. |
Commented by: lacak (lacak) MySQL: DELETE FROM <table>[, <table> ...] UPDATE <table>[, <table> ...] PostgreSQL: UPDATE <table> MSSQL: UPDATE <table> Oracle: DELETE FROM (select * from <table>) UPDATE <table source> Oracle syntax is very clever ... is not ? |
Commented by: lacak (lacak) MERGE statement introduced in 2.1 provides this functionality MERGE INTO table1 USING table2 ON table1.c1=table2.c1 which is similar to UPDATE table1 SET ... FROM <table2> WHERE table1.c1=table2.c1 so I think, that this FR-758 is obsolete, is not ? ORACLE and IBM DB2 have interesting extension to SQL2003 : WHEN MATCHED [AND <search condition>] THEN [UPDATE SET ... | DELETE ] which enables INSERT not matched rows or UPDATE or DELETE matched rows |
Commented by: @asfernandes Yes, you're right. |
Modified by: @pcisarWorkflow: jira [ 10782 ] => Firebird [ 15181 ] |
Commented by: Sean Leyne (seanleyne) Closed at the request of the case reporter. |
Modified by: Sean Leyne (seanleyne)status: Open [ 1 ] => Resolved [ 5 ] resolution: Won't Fix [ 2 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: lacak (lacak)
Votes: 3
SFID: 1232032#
Submitted By: lacak
Would it possible to extend UPDATE syntax /like
MySQL , PostgreeSQL or MSSQL/ :
UPDATE table1, table2
SET col1=..., ...
WHERE [condition | join_condition]
-OR-
UPDATE table1
SET col1=..., ...
FROM table1, table2
WHERE ...
-AND-
DELETE table1
FROM table1, table2
WHERE ...
Thank
The text was updated successfully, but these errors were encountered: