|
-
July 28th, 2001, 12:20 PM
#1
db question
Oracle db
I want to check if the first character of the field, 'Name' is "L". I got problem with 'Like'. Besides 'Like', is there anything else I can use for this purpose?
***********
cnn1.Open "Driver={Microsoft ODBC Driver For Oracle};UID=PO8;PWD=PO8;"
rs.Open "select Name from test WHERE name Like 'L*'", cnn1
**************
Something wrong with the 'Like' operator. it returns 'eof' when the field, Name has the value of 'Linda'.
Something wrong with my syntax?
Thanks
-
July 29th, 2001, 04:54 AM
#2
Re: db question
Hai,
The wild card charactor supported by oracle is '%'. So your second line should be
rs.Open "select Name from test WHERE name Like 'L%'", cnn1
All the best and regards
Kishore
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|