在MySQL中使用first()进行MS Access查询

时间:2018-08-27 17:42:42

标签: mysql

mysql中first()的等效项是什么,我有以下查询需要转换为mysql查询:

SELECT DISTINCTROW stavke.sifra, First(artikli.naziv) AS naziv, Sum(stavke.ulaz) AS ulaz, Sum(stavke.izlaz) AS izlaz, Sum([stavke].[ulaz]-[stavke].[izlaz]) AS stanje, Sum(stavke.dug) AS duguje, Sum(stavke.pot) AS potrazuje,sum(stavke.dug-stavke.pot) as saldo, First(artikli.grupa) AS grupa, First(artikli.proiz) AS proiz,first(artikli.id) as id FROM artikli INNER JOIN stavke ON artikli.sifra = stavke.sifra  where stavke.dat>=" & condition& " and stavke.dat<=" & condition & " GROUP BY stavke.sifra 

0 个答案:

没有答案