如何在MySQL中使用“WITH”子句?
WITH
WITH t1 AS( SELECT article.*, userinfo.*, category.* FROM question INNER JOIN userinfo ON userinfo.user_userid = article.article_ownerid INNER JOIN category ON article.article_categoryid = category.catid WHERE article.article_isdeleted = 0)SELECT t1.*FROM t1ORDER BY t1.article_date DESCLIMIT 1, 3
精慕HU
相关分类