Jump to content

Sorting Data By It's First Letter


Grabeorama

Recommended Posts

SELECT * FROM blog WHERE SUBSTR(Name, 1) = 'A'It would probably be better to use the LEFT function though, that returns a certain number of characters from the left side. That sounds like exactly what you need, so the database will probably run that faster.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...