funeralcrasher (
funeralcrasher
) wrote
2006
-
09
-
19
10:15 pm
Current Music:
Ultravox - Mr. X
Entry tags:
mysql
,
php
[mysql] SELECT DISTINCT first letter of a varchar string
How could I SELECT DISTINCT the first letter of a string stored as a varchar?
Flat
|
Top-Level Comments Only
Re: something like?
pkbarbiedoll.livejournal.com
2006-09-20 03:37 am (UTC)
(
link
)
Found it -- thanks!!
MID(str,pos,len) is a synonym for SUBSTRING(str,pos,len).
http://dev.mysql.com/doc/refman/5.0/en/string-functions.html
2 comments
Post a new comment
Flat
|
Top-Level Comments Only
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
Re: something like?
MID(str,pos,len) is a synonym for SUBSTRING(str,pos,len).
http://dev.mysql.com/doc/refman/5.0/en/string-functions.html