I must check my article-database for descriptions containing a '. With the query
select * from articleTable where description like '%'' '
I am getting nowhere...
If your wanting a result set with records whose description contains a double quote you could use...
SELECT * FROM articleTable WHERE CHARINDEX('"',description) > 0 JHall
Tnx for your fast response!!!
I cleared it up already...
I use a function instr() in visual basic which lets me search for a string in a string...
What I was realy looking for is a query for finding the descriptions with a single quote in it... Can I also use charindex for this? I don't need it now, but I realy like to know...
Sure can. I think you can even include this function in SQL Statement in a user defined function because the CHARINDEX() function is deterministic. Also check out PATINDEX() it is also a very useful function. JHall
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.