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

连接两个表解决方法

热度:155   发布时间:2016-05-05 08:18:37.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
  相关解决方案