mysql 查询几行,MYSQL多表联合查询?
SELECTA.ID,A.NUMBER,A.PRICE,A.ORDER_TIME,B.USER_ID,B.STARTIME,B.STOPTIME,C.CHANNEL_PAY,D.COMPANYFROMD表DLEFTJOINA表AONA.COMPANY_ID=D.UIDLEFTJOINB表BONB.COMPANY_ID=D.UIDLEFTJOINC表CONC.COMPANY_ID=D.UID有条件的再加行:WHERE..........排序(如A表的ID由大到小排)
:ORDERBYA.IDDESC