欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

SQLite不支持Right Join的解决办法GROUP BY

程序员文章站 2022-11-21 11:48:43
我想用这个,很不幸sqlite没有。。 http://www.sqlite.org/omitted.html 被omitted了!!!!!!!!!!!!! 复制代码 代码如...
我想用这个,很不幸sqlite没有。。
http://www.sqlite.org/omitted.html
被omitted了!!!!!!!!!!!!!

复制代码 代码如下:

select  
  *  
from  
  a right join  

where  
a.id =  b.id ; 


于是用这个先暂时代替好了。。。


复制代码 代码如下:

select  
  *  
from  
  a inner join  

where  
a.id =  b.id group by a.id; 



~~~~~

sqlite真的不错~~~~~