|
|
Question : delete syntax
|
|
My query is something like:
DELETE FROM #first WHERE #first.i_ID = #second.a_ID
This doesn't work because #second must be specified in the FROM clause. How do I do this?
Thanks
|
Answer : delete syntax
|
|
For your specific case:
DELETE #first FROM #first, #second WHERE #first.i_ID = #second.a_ID
The "official" syntax is:
delete [from] [[database.]owner.]{table_name | view_name} [from [[database.]owner.]{table_name | view_name} [, [[database.]owner.]{table_name | view_name}]...] [where search_conditions]
|
|
|
|
|