RE: get first letter from field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  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/



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux