Ich verwende Codeigniter für PHP und eine Bibliothek namens Datatables. Sie finden es unter diesem Link https://github.com/IgnitedDatatables/Ig ... -Reference
Jedenfalls habe ich die folgende Abfrage in der folgenden Struktur.
Code: Select all
Code: Select all
[Microsoft][SQL Server Native Client 10.0][SQL Server]Column 'country' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
SELECT *
FROM FROM drinks p
INNER JOIN tableb ON tableb.id=p.pid
INNER JOIN tablec ON tablec.TerritoryId=tablec.TerritoryId
INNER JOIN tabled ON tablec.AccountId=tablec.AccountId
INNER JOIN tables ON d.AccountId = tabless.AccountId
INNER JOIN tablessc ON tablesc.Code = p.region
and sc.CodeGroup ='Region'
WHERE region > '0'
AND p.location = '0'
GROUP BY tablessc.Name
,p.id
,p.name
,atabled.test
Beachten Sie außerdem, dass ich keinen Fehler erhalte, wenn ich diese Abfrage in derselben Struktur auf dem Microsoft SQL Server platzieren würde
Mobile version