![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
marco db.open("albe") ; and not db.open("PRIV") ... sq=sql /* ALIAS: priv */ Opening albe and specifying :PRIV: inside the SQL comment should make Paradox totally confused. |
|
The comment was once needed if you wanted to get the answer table in an in-memory cursor , but then it had to be the same alias as the opened database-variable. Specifying a different database in the SQL-comment has never come to my mind. |
riv:~contratto" C, ":albe:movi" M
#12
| |||
| |||
|
|
Bertil Isberg wrote: marco db.open("albe") ; and not db.open("PRIV") ... sq=sql /* ALIAS: priv */ Opening albe and specifying :PRIV: inside the SQL comment should make Paradox totally confused. It "Should" but i does not because it does not care for DML. "albe" was opened for previous sql using tables in "albe" The comment was once needed if you wanted to get the answer table in an in-memory cursor , but then it had to be the same alias as the opened database-variable. Specifying a different database in the SQL-comment has never come to my mind. I understand you. Does this following code work with pdx>7? Which database do you open? -------------------------------- db.open("any"); or "albe" or "priv" sq=sql select c.numero,c.tp,m.bof from " riv:~contratto" C, ":albe:movi" Mwhere c.numero=M.numero ------------------------------- |
![]() |
| Thread Tools | |
| Display Modes | |
| |