Jump to content

Insert data from other table


haibec

Recommended Posts

  • 1 month later...
Guest ~H-G-X~

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...