 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Armando Guest
|
Posted: Thu Feb 23, 2006 9:03 pm Post subject: SQL - Where do I start... |
|
|
I am at stop here. I have to differentiate between ABCDEF and ABC, in
an SQL statement.
I thought that the following would give as result ABCDEF and ABC,
instead it gives ABC as result!:
SELECT *
FROM Cus
WHERE Name LIKE "ABC"
Shouldn't this return both ABCDEF and ABC as result??? i am using C++
Builder 6.0
Thanks. |
|
| Back to top |
|
 |
Varga Tamás Guest
|
Posted: Thu Feb 23, 2006 9:03 pm Post subject: Re: SQL - Where do I start... |
|
|
You must be use * or ? char in LIKE!
Look this:
SELECT *
FROM Cus
WHERE Name LIKE "ABC*"
It work good!!!
"Armando" <villas1k (AT) gmail (DOT) com> wrote in message
news:1140725068.171804.251940 (AT) t39g2000cwt (DOT) googlegroups.com...
| Quote: | I am at stop here. I have to differentiate between ABCDEF and ABC, in
an SQL statement.
I thought that the following would give as result ABCDEF and ABC,
instead it gives ABC as result!:
SELECT *
FROM Cus
WHERE Name LIKE "ABC"
Shouldn't this return both ABCDEF and ABC as result??? i am using C++
Builder 6.0
Thanks.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|