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!

From a beginner - SQL question

Status
Not open for further replies.

Jimreaper

MIS
May 22, 2001
21
US
PRIMARY KEY COL1 COL2
1 a
2 a
3 b
4 c
5 b
6 c
7 a
8 a


Question:
What is the correct syntax to use if I want to copy COL1 to COL2?

Thanks
I know this is an easy one I'm new to this.
 
Hi!

The SQL you need is:

UPDATE YourTable SET YourTable.col2 = [YourTable]![col1];

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top