Link to home
Start Free TrialLog in
Avatar of Shen
ShenFlag for United States of America

asked on

sql server select a string with a double quote part

I need to select a string that also contains double quote from an xml column.

The string looks like:   PostNotes="2".    I was using xml like '%PostNotes=""2"", but i doesn't work.
Avatar of Shen
Shen
Flag of United States of America image

ASKER

Sorry i was using xml like '%PostNotes=""2""%'
SOLUTION
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shen

ASKER

Thank you, this worked - LIKE '%PostNotes="2"%'.

Just have one last criteria:

 LIKE '%PostNames="test"% -  i runs but it does not seems to be getting the actual data.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shen

ASKER

Thanks,