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

Copy a customer account

Status
Not open for further replies.

mnassih

IS-IT--Management
Jun 29, 2005
64
SE
I want to create a new customer account with the same information in columns but with different ID.

Many thanks in advance,

 
INSERT INTO Customers
(...fieldlist...)
SELECT [same fieldlist, same order]
FROM Customers
WHERE ID = [the ID of the current record]

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Pity the insomniac dyslexic agnostic. He stays up all night, wondering if there really is a dog.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top