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
Exchange Single Email Restore failure
Restore of systemstate data and exchange databases. SA no longer comes up with error c007054b
Outlook Address Book/Global Address List Issue!
Exchange 2007 CAS HUB Question ?
event listener for error with loader?
Invalid drive specification from dos disk. No drive found error/status code:0120
MINUS query -Why cannot work?
Script to Connect a home directory in Active Directory
Access / Maths - Calculate price excluding VAT using an Access field which contains the price including VAT.
Exchange 2007 Migration and OAB sync with OL 2K3