May 23, 2001 #1 savok Technical User Joined Jan 11, 2001 Messages 303 Location AT I have a table that contains a SSN field. I need to create a new field in the same table called SSN2 and copy all the data from SSN to SSN2. how would i do that? thanks
I have a table that contains a SSN field. I need to create a new field in the same table called SSN2 and copy all the data from SSN to SSN2. how would i do that? thanks
May 23, 2001 #2 Terpsfan Programmer Joined Dec 8, 2000 Messages 954 Location US ALTER TABLE tablename ADD COLUMN SSN2 Text(50) INSERT INTO tablename ( SSN2 ) SELECT tablename.SSN FROM tablename; I'm not sure what kind of database you are working with but this sql statement should do that for you unless you're working with an Access table. Upvote 0 Downvote
ALTER TABLE tablename ADD COLUMN SSN2 Text(50) INSERT INTO tablename ( SSN2 ) SELECT tablename.SSN FROM tablename; I'm not sure what kind of database you are working with but this sql statement should do that for you unless you're working with an Access table.