Microsoft
Software
Hardware
Network
Question : Removing an apostrophe using update comand
I have some data that needs to be updated. I need to update codes that have an apostrophe, removing the apostrophe. Only problem is, SQL uses Apostrophies so my script doesnt work.
Update "Patient" set "Primary Insured Gaurantor" = 'DALES0000' where "Primary Insured Gaurantor" = "D'ALES0000" <- used quotes here just so you could see exactly what I was trying to update. I am trying to remove the apostrophe from D'ALES0000. Several others to do in several tables.
Answer : Removing an apostrophe using update comand
you need to use back-to-back apostrophes:
Update "Patient" set "Primary Insured Gaurantor" = 'DALES0000' where "Primary Insured Gaurantor" = 'D''ALES0000'
Random Solutions
IP Address on XP Pro
Moving Data Store to New Server
Auto zip files of a certain extension
Screen resolution must be set to highest on laptop for full screen
Enabling SMTP Vrfy in Exchange 2000 & 2003
How do I convert a DNS zone to the new "AD-Domain" storage type versus "AD-Legacy"?
How can I send a song in an email that will play autimatically when the email is opened?
autoincrement field problem
OMA Trouble
Read parameters from URL