View Single Post

   
  #2 (permalink)  
Old 02-27-2008, 01:06 PM
jefftyzzer
 
Posts: n/a
Default Re: V8.2 doesnot support this? SQL20165N An SQL data change statement within a FROM clause is

On Oct 5, 8:12 am, shenan...@gmail.com wrote:
> 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