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
Lost Outlook 2003 Distribution List
OUTLOOK 2003 RETURNS THIS ERROR MESSAGE WHEN ATTACHING A PDF FILE - MICROSOFT OFFICE WORD, THE OPERATION FAILED
Missing or Corrupted Command Com Trying to Boot From A Ghost Floppy
Exchange 2007 and Exchange 2003 OWA question
svchost 100%
How to transfer desktop xp system to laptop xp system
Division with fractions ?
Sound Card
Question about the setup of DFS-R and multiple namespace servers
Getting Started with Win CE 4.2