Ask a Question related to Dreamweaver AppDev, Design and Development.
-
-D- #1
wildcard search
I have the following SQL that searches based on the exact input stored in a
session variable If reqname <> '' Then strSQL = strSQL &
'AND(ABR_REQUESTOR='' & reqname & '')' The variable reqname is set to
a session variable Session('requestor') I'd like to ammend the SQL to do a
wildcard search instead of searching for the exact string stored in the Session
variable: Something like: If reqname <> '' Then strSQL = strSQL &
'AND(ABR_REQUESTOR LIKE %)' How can I ammend the line to properly do a
wildcard search? Thanks, -D-
-D- Guest
-
Wildcard in MySQL
--- Nederlands - Dutch --- In MySQL is het percent-teken % de joker. Deze joker kan staan voor één of voor meerdere tekens, daar wordt in feite... -
Need help with wildcard
I need help with wildcard. I tried to do a search and search for any record contains "agency list" in that column. I got no record return in this... -
cfqueryparam and wildcard select for search
Quick Question. I am having some difficulty with this select statement for a search: SELECT * FROM table WHERE name like ''<cfqueryparam... -
Is there any value in ID's Wildcard S&R ?
I can think of no scenerio in which a wildcard search should not return the initial value of the searched character. As it works now, a wildcard S&R... -
Wildcard and DTS..?
Hi all, I have a path in a DTS-package that looks like: sFilename = "d:\path\*.PMS" & Right(Year(Now()), 2) sFilename = DTSGlobalVariables ... -
Julian Roberts #2
Re: wildcard search
You can use LIKE. eg where foo like '%'
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
-D- #3
Re: wildcard search
yeah, I altered the SQL as follows: strSQL = strSQL & 'AND(ABR_REQUESTOR
LIKE '' & reqname & '%')' The problem is the field ABR_REQUESTOR
stores the first and last name seperated by a space...i.e. John Smith Using
the above SQL will return John Smith if I use J, Jo, Joh. But, if I want to
search for Smith by using S, or Sm, etc. it won't work. I need to alter the
statement to look for anything after a space? Not sure how to do this?
Thanks, -D-
-D- Guest
-
Julian Roberts #4
Re: wildcard search
Maybe like: where foo like '%sm%'
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest



Reply With Quote

