SV: Selecting between using letters

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

 



How about

Select LastName from sometable where LastName >= 'A' and LastName <'F'

Hth Henrik Hornemann

-----Oprindelig meddelelse-----
Fra: Doug Parker [mailto:drparker@xxxxxxxxxxxxxxxx] 
Sendt: 29. december 2003 23:18
Til: php-db@xxxxxxxxxxxxx; php-general@xxxxxxxxxxxxx
Emne:  Selecting between using letters


How would I create a select statement in MySQL that would return a range
of records from the LastName field where the value starts with a
designated letter - for example, returning the range where the first
letter of LastName is between A and E...

Any help would be greatly appreciated.



------------------------------------------------------------
http://www.phreshdesign.com

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

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