sqlite3 多表查询方法

论坛 期权论坛 脚本     
匿名技术用户   2020-12-30 07:31   11   0

多表查询方法:

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;

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP