View Single Post
Old 09-24-2008, 07:13 PM  
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
Quote:
Originally Posted by GrouchyAdmin View Post
select * into db2 from db1 where (id <= 201 and id >= 1000)?
Won't work if the IDs that are in one but not the other aren't sequential

Have to use a join (right, left, outer, whatever way you prefer hehe) in that case.

EDIT: My bad, he did say they are starting with 201 heh. So nevermind.
__________________
Skype variuscr - Email varius AT gmail

Last edited by Varius; 09-24-2008 at 07:15 PM..
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote