|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL LIKE help...
Help PLease...
I am trying to get a recordset from an MS Access database via ODBC... When I do a "SELECT FROM WITH LIKE" the recordset does not get all the correct data... i.e. Classes LIKE 0002 from this data 1: 0001,0002,0003 2: 0002 3: 0002,0003 The recordset is returning only #2 and does not see the "0002" in records #1 and #3 Any Ideas... |
|
#2
|
||||
|
||||
|
Try:
SELECT * FROM Table1 WHERE field1 LIKE '%2%' |
|
#3
|
|||
|
|||
|
With Access, % is not the wildcard it is *
SELECT * FROM Table1 WHERE field1 LIKE '*2*' S- |
|
#4
|
||||
|
||||
|
You can use the % wildcard with ADO recordsets. Probably RDO or DAO, but not sure. But the * should work as well.
Last edited by dcarva : January 31st, 2004 at 11:55 AM. |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > SQL LIKE help... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|