Jump to content

mysql query A-Z


esport

Recommended Posts

[quote author=esport link=topic=100939.msg398996#msg398996 date=1153183671]
Thanks mate, works great. I guess its not case sensitive?[/quote]

Correct. Did it need to be? If so, I *think* you need to modify the query to ... BINARY left(somefieldname,1) = 'your choice of case-sensitive letter'
Link to comment
https://forums.phpfreaks.com/topic/14896-mysql-query-a-z/#findComment-59735
Share on other sites

You can also use a simple REGEXP for this, though I've not done the performance comparisons... personally, I find REGEXs easier to read, but I spend all my time staring at Perl code, so I'm biased.  BTW, MySQL 4.1+ requires the use of a COLLATION to get the old binary attribute, AFAIK.
Link to comment
https://forums.phpfreaks.com/topic/14896-mysql-query-a-z/#findComment-59830
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.