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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help on an SQL

Status
Not open for further replies.

dmaier

MIS
Apr 13, 2002
38
US
I have a table that needs to have data moved from one with identical fields to another.

I want to move data with an id higher than 75615 to the other table.

The fields are headline, link, team, and Pdate

The idno field is a field which is auto increment. Is there a good way to do this. There are 100 records that I want to move but dont want to copy and re enter.
 
Hopefully the answer may be as simple as
[If the fields are the same in both table structures]

INSERT INTO [NewTable]
SELECT * FROM [OldTable] WHERE ID > 75615

I hope that this helps.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top