Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use % in command statement

Status
Not open for further replies.

vega83

Programmer
Jun 12, 2008
141
US
Hello friends I am trying to use % for all in command statement
in where caluse I have
AND B.County_Id in {?County} or {?County} = '%'
B.County_Id is numeric and {?County} is string. Any ideas?.

I also tried
cast(B.COUNTY_ID as varchar(32)) in {?County} or {?County} = '%'


 
Please ignore
I use CHAR(field) like '?param' it worked
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top