Board index » delphi » Simple SQL syntax question
Charles Bédard
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Charles Bédard
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Simple SQL syntax questionHow would i specify to retrieve records that have a STRING field containing For example: i need to get all the records for which FieldString contains SELECT * FROM table WHERE ______________________ (fill in the blank) i just don't know the operator to test for substring presence.The Any help would be appreciated. :) Please reply by email as well as to this newsgroup. |
?×???× eá×?ì ?×?????×é
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questionCharles Bdard <beda...@videotron.ca> D?? ??? Quote
My name is Paul. Try this way: Select * With best wishes Paul E. Shvedov ( shve...@diasoft.ru ) |
JULIEN_P9
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questiontry Charles Bdard <beda...@videotron.ca> a crit dans l'article Quote
|
Marc Scheun
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questionQuote"Charles Bdard" <beda...@videotron.ca> wrote: characters (like the * under DOS), and "_" (the underscore) stands for exactly one character. Use them in conjunction with the LIKE operator: select * from table select * from table HTH ====================================================================== |
Malesevic Dusa
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questionQuote
|
Marc Scheun
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questionQuote"Malesevic Dusan" <k...@eunet.yu> wrote: versions I know of. SQL uses the "%" (percent sign) for any number of characters (like the Marc ====================================================================== |
The Graphical Gno
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questionQuoteIn article <33b756e5.4355...@news.bernoise.ch>, marc.scheu...@NO.SPAM.PLEASE.ch (Marc Scheuner) wrote: on the driver you are using. This sucker did slow me down for about three weeks. The Graphical Gnome (r...@ktibv.nl) Senior Software Engineer --------------------------------------------------------------------------- |
Marc Scheun
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questionr...@ktibv.nl (The Graphical Gnome) wrote: Quote>>SQL uses the "%" (percent sign) for any number of characters (like the but a DOS/Windows-based "database" product. Of the true SQL products (I mean a full-fledged RDBMS, like Oracle, Marc ====================================================================== |
Peter G. Milla
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Simple SQL syntax questionUse the LIKE operator. Using the % wildcards should match the string anywhere in the field. In article <01bc81db$156cbd00$5868fdcf@charles>, "Charles Bdard" Quote<beda...@videotron.ca> wrote: * Peter G. Millard ******************* Maintainer of the VB * * mill...@buffnet.net ************** General & VBDOS FAQ's * * http://www.buffnet.net/~millard ******** Error Reading Drive A..... * * http://www.vantek-corp.com ** Formatting C: Instead * ************************************************************************* |