asi
asked on
sql
hi
i"m using a local sql and i would like to know , if i have a big database (data records ) and i wish to run a query , the all purpose of the query is just to recive from the sql empty dataset (that is combination of the query tables fields ! ) so the query have to be very short on .open (quick) even when there are large data .
(the sql result should be an empty table constructed from the fields in the select query)
i try to use several ways including sql false Ā condition but its look like every time the the sql is running he always scan all the data record ....
can u help me ?
asi :)
i"m using a local sql and i would like to know , if i have a big database (data records ) and i wish to run a query , the all purpose of the query is just to recive from the sql empty dataset (that is combination of the query tables fields ! ) so the query have to be very short on .open (quick) even when there are large data .
(the sql result should be an empty table constructed from the fields in the select query)
i try to use several ways including sql false Ā condition but its look like every time the the sql is running he always scan all the data record ....
can u help me ?
asi :)
He means, creating a new table, that it's structure is based on several fields from several tables.
This will be done by using SQL statement: Create Table...
Right?
Ronit
Kfar Saba
This will be done by using SQL statement: Create Table...
Right?
Ronit
Kfar Saba
ASKER
i'll try ...
i have some sql query, one of the things that the user should have , is the option to choose fields from the sql result;
since the sql query is created dynamicly, and i dont know witch fields are going to be in the query, i want to find some way to execute the query just for the purpose to know the query fields name; this action have to be very quick and should not do any real query/condition/procsses
if i'll recive an empty query table, it will be very easy 4 me to access to all its field
The problem that i got is that any try to exec even a simple query, the query start going over allthe data record and it is very slow proccess ....
10x any was
asi
i have some sql query, one of the things that the user should have , is the option to choose fields from the sql result;
since the sql query is created dynamicly, and i dont know witch fields are going to be in the query, i want to find some way to execute the query just for the purpose to know the query fields name; this action have to be very quick and should not do any real query/condition/procsses
if i'll recive an empty query table, it will be very easy 4 me to access to all its field
The problem that i got is that any try to exec even a simple query, the query start going over allthe data record and it is very slow proccess ....
10x any was
asi
ASKER
Ronit ? Kfar SABA ? e-mail me please ,your e-mail to b_asi@inter.net.il
bye
bye
Are using Paradox?
ASKER
b"h
yap , i" using paradox
yap , i" using paradox
It's a bit complicated to explain it. If you increase the points I'll send you a sample application+some explanation in here for the others.
ASKER
Adjusted points to 65
Is it necessary for you to build the table, using SQL, Cause I prefer to build it by another method, based of course on these Linked tables.
Hmmmm, I just wonder. It's hard for me to understand what you realy want.
Maybe you can create your table just the usual way, I mean to add field objects to a table object. Can you explain again how a query can do a thing that this "usual" way can't?
Matvey
Petach-Tiqa
bosism@netvision.net.il
Maybe you can create your table just the usual way, I mean to add field objects to a table object. Can you explain again how a query can do a thing that this "usual" way can't?
Matvey
Petach-Tiqa
bosism@netvision.net.il
ASKER
to ronit;
i"m ready to hear othere answers but i think that i much prefer sql ;
(if u mean to find out the field using linkt tabel and easy access to the fields propreties ... this is not what i"m looking 4)
so i think using sql is the best (only?) way 4 me
10x
asi
i"m ready to hear othere answers but i think that i much prefer sql ;
(if u mean to find out the field using linkt tabel and easy access to the fields propreties ... this is not what i"m looking 4)
so i think using sql is the best (only?) way 4 me
10x
asi
You'll get the sample on Sunday.
Ronit, can you send the sample for me too, because I still don't really get it...Thanks!
bosism@netvision.net.il
bosism@netvision.net.il
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
when i"m using the open statment the sql query is actualy start running ... and its take time ... this is the my problem !
10x
asi
10x
asi
Hi,
In INFORMIX and ORACLE, there is a possibilty to do it.
Here is an example in INFORMIX:
SELECT colname, coltype, HEX(collength)
FROM syscolumns C, systables T
WHERE C.tabid = T.tabid AND T.tabname = 'orders'
syscolumns and systables are informix system tables which store information on the database tables.
In PARADOX, however, I think you'll have to define your database
in the Data Dictionary.
The Data Dictionary stores information on your table's structure etc.
Enter the BDE GUI Application and see that the DBDEMOS is already defined.
The system Table name is BDESDD, located in:
C:\Program Files\Borland\Delphi 3\OBJREPOS
I don't know much about the data in this table, but as every other table, you can use SQL with it.
Regards,
Ronit
In INFORMIX and ORACLE, there is a possibilty to do it.
Here is an example in INFORMIX:
SELECT colname, coltype, HEX(collength)
FROM syscolumns C, systables T
WHERE C.tabid = T.tabid AND T.tabname = 'orders'
syscolumns and systables are informix system tables which store information on the database tables.
In PARADOX, however, I think you'll have to define your database
in the Data Dictionary.
The Data Dictionary stores information on your table's structure etc.
Enter the BDE GUI Application and see that the DBDEMOS is already defined.
The system Table name is BDESDD, located in:
C:\Program Files\Borland\Delphi 3\OBJREPOS
I don't know much about the data in this table, but as every other table, you can use SQL with it.
Regards,
Ronit
Can you please explain it in an other way? What do you want exactly?