sql server - how to get result if value is comma seperated in like codition -


i trying following query not getting results:

select *  internationalpropertylocals   propertyname '%chatham,ma%'    

but if try below query expected result:

select *  internationalpropertylocals  propertyname = 'chatham, ny' 

are missing whitespace after comma?

try:

select * internationalpropertylocals propertyname '%chatham, ma%' 

if know exact propertyname looking avoid using like = describes intentions better, not mention performance concerns.


Comments

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -