RE: [PHP-DB] get first letter from field
| From: | John W. Holmes | Date: | Sun, 04 May 2003 15:35:35 +0000 |
| Subject: | RE: [PHP-DB] get first letter from field | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27507@lists.php.net to get a copy of this message | ||
> i want to select all customers that name begining with char 'A'
I'm assuming you mean from a database? If so, learn some SQL:
SELECT * FROM table WHERE LEFT(column,1) = 'a';
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/