我使用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错误还是有一些配置让它起作用?