Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating data from one table to another 1

Status
Not open for further replies.

angela4eva

Programmer
Apr 29, 2005
46
US
hello,
I am trying to update update a crunk of data from one table to another.The table have same fields(names and types).I want to update the data in newtable with the data in old table for classid=24.how can i do this.please help
 
insert into NEWTABLE
select * from OLDTABLE where classid = 24

YOu'll want to replace * with your field names if possible...

A wise man once said
"The only thing normal about database guys is their tables".
 
thanks guys but is there no other way of doing it..i mean more easier
 
I misread your post, Denis is right.

And no there is no way that is easier.

A wise man once said
"The only thing normal about database guys is their tables".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top