dbTalk Databases Forums  

V8.2 doesnot support this? SQL20165N An SQL data change statement within a FROM clause is

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss V8.2 doesnot support this? SQL20165N An SQL data change statement within a FROM clause is in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shenanwei@gmail.com
 
Posts: n/a

Default V8.2 doesnot support this? SQL20165N An SQL data change statement within a FROM clause is - 10-05-2007 , 10:12 AM






INSERT INTO deletetable
select * from old table
(
DELETE FROM existingtable
)
;


Reply With Quote
  #2  
Old   
jefftyzzer
 
Posts: n/a

Default Re: V8.2 doesnot support this? SQL20165N An SQL data change statement within a FROM clause is - 10-05-2007 , 01:08 PM






On Oct 5, 8:12 am, shenan... (AT) gmail (DOT) com wrote:
Quote:
INSERT INTO deletetable
select * from old table
(
DELETE FROM existingtable
)
;
Not as such, but there is a way around it. Have a look at the slide
titled "Moving duplicate rows" in the "SQL on Fire - Part 2"
presentation available at the following link:

http://www.iiug.org/waiug/present/Fo...Forum2006.html

--Jeff



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.