现在的位置: 首页 > 综合 > 正文

mysql 联表查询

2013年12月11日 ⁄ 综合 ⁄ 共 287字 ⁄ 字号 评论关闭

1、注:今天联表操作做个记录
select a.*, b.section_name from article_batch_generate a inner join section_info b  on (a.article_category=b.section_id)  WHERE 1=1  ORDER BY task_id DESC

select a.*, b.section_name from article_batch_generate a, join section_info b  WHERE 1=1 AND a.article_category=b.section_id ORDER BY task_id DESC是同等的。

抱歉!评论已关闭.