开发者

how can i show mysql data alphabeticaly

开发者 https://www.devze.com 2023-01-05 02:50 出处:网络
i have the following mysql table.... ----------------------- id customer_name date -----------------------

i have the following mysql table....

-----------------------
id customer_name date 
-----------------------

now let me know the query with which i will able to show data Order by alphabeticaly...

where values of customer_fields are like testkhan, rafae, ibrahm and i want to show th开发者_开发技巧em as

ibrahm

rafae

testkhan


… ORDER BY some_column 


I think you're looking for something like this, assuming the table name is 'Customers' and you want to order by customer_name descending:

SELECT *
FROM Customers
ORDER BY customer_name


SELECT customer_name 
FROM Customers
ORDER BY customer_name ASC
0

精彩评论

暂无评论...
验证码 换一张
取 消