I heard that the FD has a program for two different database managers using same FDQuery
, that is, it would give the two SQL's of each bank in the same FDQuery
... or something like that ...
Does Aguem have any tutorials for this?
I heard that the FD has a program for two different database managers using same FDQuery
, that is, it would give the two SQL's of each bank in the same FDQuery
... or something like that ...
Does Aguem have any tutorials for this?
Hello, yes it is possible. The component to be used is FDLocalSQL
, where you would basically do the SELECT
of a FDQuery
.
In practice, it works like this:
FDLocalSQL
component; LocalSQL
property of each dataset in the FDLocalSQl
component; FDConnection
with Driver SQLLite
; FDQuery
into the form; FDLocalSQL
and new Query on FDConnection
of item 4.0; FDQuery
, enter SQL by referencing each Query as
being a table.
Ex: SELECT NOME FROM FDQUERY1 JOIN FDQUERY2 ON (FDQUERY1.CAMPO = FDQUERY2.CAMPO)
;