haibec Posted October 4, 2006 Share Posted October 4, 2006 Hi Guys!I have two table. TB1 have ID,Name,Birthday full data. TB2 have ID,Name,Class have done data but Birthday is null. I want corect my DB. I want insert all data from Birhtday on TB1 into Birthday on TB2. Please help me Link to comment Share on other sites More sharing options...
aspnetguy Posted October 4, 2006 Share Posted October 4, 2006 do a search for SELECT INTO Link to comment Share on other sites More sharing options...
Guest ~H-G-X~ Posted November 8, 2006 Share Posted November 8, 2006 You can do like this:update db2 set birthday=(select birthday from db1 where db1.[name]=db2.[name])or like this:create an empty table: etc. db2use:insert into db2([id],name,birthday.....) select [id],name,birthday... from db1 where....or like this(use SELECT...INTO...):first of all,you must delete db2select [id],name,birthday into db2 from db1 Hi Guys!I have two table. TB1 have ID,Name,Birthday full data. TB2 have ID,Name,Class have done data but Birthday is null. I want corect my DB. I want insert all data from Birhtday on TB1 into Birthday on TB2. Please help me Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now