SQLite和INNER JOIN查询

问题描述 投票:0回答:1

大家好,我有此查询,其中有3个表联接。在Access中它可以工作,但是在SQLite中却给我一个错误,我该如何“适应” SQL命令?谢谢

<
sql join command inner-join adapt
1个回答
0
投票
请使用以下查询,

UPDATE MagazzinoTB set DataReso = 'aaa' WHERE (IDCategoria, IDPersone) IN (SELECT CategoriaTB.IDCategoria, PersoneTB.IDPersone FROM CategoriaTB INNER JOIN MagazzinoTB ON CategoriaTB.IDCategoria = MagazzinoTB.IDCategoria INNER JOIN PersoneTB ON MagazzinoTB.IDPersone = PersoneTB.IDPersone WHERE (((PersoneTB.CodicePer)="F") AND ((MagazzinoTB.Stato)=0) AND ((MagazzinoTB.DataVendita) Is Null)));

© www.soinside.com 2019 - 2024. All rights reserved.