RE: [PHP] How to select rows from Mysql with case senstive ??
| From: | Tiago Moitinho | Date: | Wed, 23 May 2001 14:11:05 +0000 |
| Subject: | RE: [PHP] How to select rows from Mysql with case senstive ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-54064@lists.php.net to get a copy of this message | ||
Try
SELECT * FROM foo WHERE strcmp('PHP', name) = 0;
> -----Original Message-----
> From: Bass¨Ð¦õªv [mailto:98350193j@polyu.edu.hk]
> Sent: quarta-feira, 23 de Maio de 2001 14:55
> To: php-general@lists.php.net
> Subject: [PHP] How to select rows from Mysql with case senstive ??
>
>
> Hi ,
> By defualt , select rows from Mysql is case insenstive .
> For exmaple ,
> select * from foo where name = 'PHP'
> select * from foo where name = 'php'
> is the same
>
> how can i do a queny which
> select * from foo where name = 'PHP'
> is success
> but
> select * from foo where name = 'php'
> fail ??
>
> given that name = 'PHP' in the database
>
> thx
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>