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

SQL command to replace value

Status
Not open for further replies.

davidmcolaco

Technical User
Aug 1, 2005
102
0
0
PT
Hi,

I have a table where I want to change all the records that contains A in a field to B.
How can I do that sql command?

Thanks.
 
If the column that contains A is all alone then it is fairly easy:

update TABLE1 set COL1='B' where COL1='A'


If this is not the case, then I suggest trying a forum where SQL gurus reside.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top