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!

Update

Status
Not open for further replies.

annub

Programmer
Apr 23, 2003
33
US
One of the col in my table is nvarchar datatype & data is something like this. PQ1234,PQ34566,PQ1111. I want to remove PQ's from data. How do i update this col.

Thanks
 
update table_name set column_name = replace(column_name,'PQ','')
 
UPDATE myTable set myCol = replace(myCol,'PQ','')

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Whew - that was fast Jamfool...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top