Charly Pruemm
2006-03-03 14:35:17 UTC
What is the difference between these 2 possibilities?
pcDatapath is the direcory where myDatabase and tables are stored..!
1.)
if !dbused('MyDatabase')
open database (pcDatapath+'MyDatabase') shared
endif
set database to myDatabase
select * from myDatabase!customers where state='Michigan' into cursor
curCustumers
versus:
2.) Dont open the database but:
select * from (pcDatapath+'customers') where state='Michigan' into cursor
curCustumers
Query the table directly over its path and tablename
Thanks for advises
CHARLY
pcDatapath is the direcory where myDatabase and tables are stored..!
1.)
if !dbused('MyDatabase')
open database (pcDatapath+'MyDatabase') shared
endif
set database to myDatabase
select * from myDatabase!customers where state='Michigan' into cursor
curCustumers
versus:
2.) Dont open the database but:
select * from (pcDatapath+'customers') where state='Michigan' into cursor
curCustumers
Query the table directly over its path and tablename
Thanks for advises
CHARLY