php-db | 2000121
Date: 12/05/00
- Next message: Chris Aitken: "Re: [PHP-DB] SQL wildcards???"
- Previous message: Gary: "[PHP-DB] SQL wildcards???"
- In reply to: Gary: "[PHP-DB] SQL wildcards???"
- Next in thread: Chris Aitken: "Re: [PHP-DB] SQL wildcards???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Standard SQL defines the percent sign (%) to match one or more characters
and the underscore (_) to match single characters.
Check your database implementation's documentation for extensions and/or
some way of doing Full Text Indexing.
Doug
At 10:02 PM 12/5/00 -0500, Gary wrote:
>I'm new to PHP, so I have a lot to learn. Is there a way to use any of these
>string comparisons in a SQL statement? Like (select * from database where
>field = "some string comparison") I want to find every instance of a word
>that the user supplies. Are there any wildcard characters I can use?
>
>Thanks, Gary
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Chris Aitken: "Re: [PHP-DB] SQL wildcards???"
- Previous message: Gary: "[PHP-DB] SQL wildcards???"
- In reply to: Gary: "[PHP-DB] SQL wildcards???"
- Next in thread: Chris Aitken: "Re: [PHP-DB] SQL wildcards???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

