当前位置: 代码迷 >> 其他数据库 >> 连接两个表解决方案
  详细解决方案

连接两个表解决方案

热度:405   发布时间:2013-02-26 00:00:00.0
连接两个表
sqlite里面,
t1 有两个字段code ,name,t2 有两个字段  code,price
select code,price from t2 where t1.code=t2.code
为何没有结果?
------解决方案--------------------------------------------------------
select t2.code,t2.price from t2,t1 where t1.code=t2.code
  相关解决方案