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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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