Heim > Fragen und Antworten > Hauptteil
domain是域名表,domain_sell是上架的域名表,domain_auction_history 是域名拍卖表
这是我的查询语句:
SELECT d.,s.,MAX(h.price) AS max_price FROM domain d LEFT JOIN domain_sell s USING(domain_id) LEFT JOIN domain_auction_history h USING(domain_id) WHERE d.status
IN('已上架', '拍卖中') AND s.type='在线拍卖' ORDER BY max_price DESC LIMIT 16
这是结果(应该是没有数据啊):