0
qry1 = "Select * from ser_complaint_master a,ser_complaint_status b,company_master c
        where a.complaint_no=b.complaint_no
        and a.allocation_code=c.co_code
        and c.co_br_code='" + Session["BRCODE"] + "'
        and a.Complaint_Date>='" + Frdat + "' and a.Complaint_Date<='" + Todat + "'
        and a.status in ('Completed')
        and a.complaint_type in('" + cmptype + "')";

如果涉及多个表,如何在选择查询中使用 ORDER BY。

4

1 回答 1

2

添加order by a.complaint_no到查询的末尾。

于 2013-03-02T06:26:19.630 回答