首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

连接两个表解决方案

2013-01-25 
连接两个表sqlite里面,t1 有两个字段code ,name,t2 有两个字段code,priceselect code,price from t2 where

连接两个表
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

热点排行