You get a bonus - 1 coin for daily activity. Now you have 1 coin

Query with variables doesn't work in the MySQL + dbExpress + Delphi stack

Practice




dbExpress driver does not support the TDBXTypes.UNKNOWN data type. Vendor error message:

when using variables, the query doesn't work in the mysql+dbexpress+delphi combination



SET @ostat_sum = 0;
@ostat_sum := @ostat_sum + prixod-rasxod AS ostat


I have the same problem
http://www.sql.ru/forum/actualthread.aspx?tid=879755


here's a similar problem, but it was never solved

here
http://www.sql.ru/forum/actualthread.aspx?tid=920790
looks like they sort of solved it, but the ostat column ends up in the result table as a blob, which really slows things down

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Databases - MySql (Maria DB)"

Terms: Databases - MySql (Maria DB)