Closed report-zone closed 2 months ago
I have a table which contains total as a column name, this seems to cause all kinds of problems.
I can retrieve it by escaping
select `total' from bills
however I cannot use SUM anymore
select SUM(total) from bills
or
total
both throw and error
This was caused by a poor query. Not an actual problem.
I have a table which contains total as a column name, this seems to cause all kinds of problems.
I can retrieve it by escaping
select `total' from bills
however I cannot use SUM anymore
select SUM(total) from bills
or
select SUM(
total
) from billsboth throw and error