select b.productname, a.length from a_lotnamingsetup a, productbase b where a.device = b.productname(+)
...全文
24612打赏收藏
怎样修改我的SQL语句
现在有两张表a和b,a有两个字段device,length,b有一个字段product,现在想要做一个查询,列出所有的product和相应的length。现在是我写的SQL,各位大侠看看可以怎样改进,谢谢! select b.productname, a.length from a_lotnamingsetup a, productbase b where a.device = b.productname(+)