Jump to content

SQL help


moon 111

Recommended Posts

I have a table. One of the fields is title. I want to sort it by title in LOWERCASE becasue some are in lower case and others in uppercase and the lower case ones are gettting listed on the top when I sort them.

 

This is my code now:

SELECT * FROM site ORDER BY title ASC

 

Could I write something like this?

SELECT * FROM site ORDER BY LOWER(title) ASC

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/97575-sql-help/
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.