Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

default wildcard

Posted 24 Feb 2005 18:26:12
1
has voted
24 Feb 2005 18:26:12 adam partridge posted:
ive created a simple search statement
SELECT *
FROM tbljobs
WHERE intjobcat LIKE MMColParam OR strdescription LIKE '%MMcolparam2%' AND intjobtype IN (MMcolparam3)

and have set the MMcolparams to be % if the entry from the form is empty however i get invalid SQL statement .. should i be using a different wildcard if the expected mmcolparam is a number ?

Replies

Replied 24 Feb 2005 19:59:24
24 Feb 2005 19:59:24 Chris Charlton replied:
What database? (For reference)

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 28 Feb 2005 10:25:51
28 Feb 2005 10:25:51 Vince Baker replied:
you cannot use a wildcard character if the field is numeric.

Regards

Vince Baker
<strong>DMX Zone Manager</strong>

[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]

Reply to this topic