2个表的查询问题

来源:百度知道 编辑:UC知道 时间:2024/09/23 08:21:03
2个表。表1为newsdata, 表2为yl_product
要把表1里clslevel值为101102和表2的内容显示出来,总共只显示5条,按时间排列。该怎么写?
没有关联字段

说清楚啊!!是把表2的全部内容显示出来
还是根据clslevel值为101102的值从表2中选阿?关联字段是哪个?

select top 5 * from newsdata a,yl_product b where a.clslevel=b.clslevel and a.clslevel='101102' order by a.time desc