多表查询方法:
sqlite3可以有多种多表查询方法,比如 select (select * from table2) from table1 where xxx=xxx;
这种方法比较简单并且高效:
select table1.abc from table1,table2 where table1.xxx=table2.xxx;
或这种
select table1.abc from table1 inner join table2 on table1.xxx=table2.xxx;
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
QQ咨询|关于我们|Archiver|手机版|小黑屋|( 辽ICP备15012455号-4 ) Powered by 期权论坛 X3.2 © 2001-2016 期权工具网&期权论坛 Inc.
下载期权论坛手机APP