MYSQL设置时间顺序

时间:2013-12-07 09:58:05

标签: mysql

select guest_frs, guest_sur, town, customer.postcode 
from table1,table2 
where name = "xxxxx"

我需要按时间顺序在mysql上输入客户名称,但我不确定如何执行此操作。感谢帮助。感谢。

1 个答案:

答案 0 :(得分:1)

查看ORDER BY

select guest_frs, guest_sur, town, customer.postcode, yourfield
from table1,table2 
where name = "xxxxx"
order by yourfield ASC