I'm working on a small database-based eVB app (using ADOCE) for which I'm looking for a quick and easy way to retrieve records in a database of contact names based upon matching individual characters. Here are some example plain-English statements of the sort of look-ups I'm trying to do:
SELECT all records in the database WHERE the first character of CONTACT_NAME is "a"
Or...
SELECT all records in the database WHERE the third character of CONTACT_NAME is "f"
The trouble is, using SQL in CE is more limited than the MySQL commands that I'm used to and, as a result, I'm stuck. Here's what I tried...
Select * from Contacts_db where substring(Contact_name,1,1) like "a"
Select * from Contacts_db where Contact_name like "__f" (in this case, the underscore "_" character should act as a wildcard indicating the presence of 1 (any) character - but it doesn't seem to do so in CE).
Needless to say, no luck so far. As a result, any advice on this matter gratefully received!
SELECT all records in the database WHERE the first character of CONTACT_NAME is "a"
Or...
SELECT all records in the database WHERE the third character of CONTACT_NAME is "f"
The trouble is, using SQL in CE is more limited than the MySQL commands that I'm used to and, as a result, I'm stuck. Here's what I tried...
Select * from Contacts_db where substring(Contact_name,1,1) like "a"
Select * from Contacts_db where Contact_name like "__f" (in this case, the underscore "_" character should act as a wildcard indicating the presence of 1 (any) character - but it doesn't seem to do so in CE).
Needless to say, no luck so far. As a result, any advice on this matter gratefully received!