braga
New Member
I built two tables in mysql dbase, in a relation to each other (1 to many) through a security code call (codfiscaleid)
If I apply the filters search for data on a single table is fine.
If I apply the filter for date on the two tables together get an sql error like this.
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \')
...
SQL=SELECT SUM(tot_pagato) AS value, \'All\' AS label FROM Anagrafica INNER JOIN Polizze ON Polizze.codfiscaleid = Anagrafica.codfiscaleid \n WHERE Polizze.dataincasso REGEXP "[[:<:]]1970-01-01 00:00:00[[:>:]]" ) "
I'm being told that the problem is in MySQL, but if I feel in sql directly n Mysql is applied properly.
Help, I can also give you a login to try the simple project.
Thanks a lot.
If I apply the filters search for data on a single table is fine.
If I apply the filter for date on the two tables together get an sql error like this.
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \')
...
SQL=SELECT SUM(tot_pagato) AS value, \'All\' AS label FROM Anagrafica INNER JOIN Polizze ON Polizze.codfiscaleid = Anagrafica.codfiscaleid \n WHERE Polizze.dataincasso REGEXP "[[:<:]]1970-01-01 00:00:00[[:>:]]" ) "
I'm being told that the problem is in MySQL, but if I feel in sql directly n Mysql is applied properly.
Help, I can also give you a login to try the simple project.
Thanks a lot.