Hi All,
I’m developing an App that access SQLite database. SQLite has the possibility to have some SQL Queries called Views but I haven’t find any information about them with Corona SDK:
>>> There is any way to execute SQLite Views from Corona SDK?
As I can’t access the views I tried to work with the SQL. If it is very simple it works well, but I have some little complex SQL like this:
“SELECT T2.AREA, T2.PS_POSID1, T2.NAME, T3.PS_POSID2, T3.NAME AS NAME2,T1.TCODE, TT.TTEXT FROM transactions AS T1 INNER JOIN (app01 AS T2, app02 AS T3, transacttext AS TT) ON (T2.PS_POSID1=T1.PS_POSID1 AND T3.PS_POSID2=T1.PS_POSID2 AND TT.TCODE=T1.TCODE) WHERE TT.LANGU = ‘E’ AND T2.LANGU = ‘E’ AND T3.LANGU = ‘E’ AND ( T1.FREQ = ‘A’ OR T1.FREQ = ‘B’ ) ORDER BY T2.AREA, T2.PS_POSID1, T3.PS_POSID2, T1.TCODE”
This SQL works property well on SQLite Manager but when I try to execute on Corona I receive this error:
“Failed to parse error message: no such column T2.AREA”
>>> Why this correct SQL is not working on Corona?
Thanks in advances
Great!