在Delphi 10中,不显示使用SQLite在FireDAC中格式化的数据

时间:2018-02-11 01:14:51

标签: sqlite delphi firedac

我使用FireDAC中的TFDQuery和SQLite数据库,显示一些格式化的字段,并且我遇到了" printf"因为TFDQuery在以下情况下不显示数据:

// THIS WORKS ON SQLite CONSOLE and doesn't work in Delphi
// With a comma separator it should show "1,234" in SQLite console and it shows "empty data" in Delphi
SELECT printf('%,d', 1234 ) AS val_tot FROM itens;

//THIS DOESN'T WORK FROM THE SQLITE CONSOLE AND SHOWS WRONG DATA IN DELPHI
// With dot separator shows '1234' in Delphi and doesn't work in SQLite console
SELECT printf('%.d', 1234 ) AS val_tot FROM itens;

这是一个TFDQuery错误还是有一些配置让它起作用?

0 个答案:

没有答案