How to empty ZTable

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
stiff
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 04.06.2009, 00:20

How to empty ZTable

Post by stiff »

The ZTable doesn't have an EmptyTable method like the bde. How is this achieved? EmptyDataSet doesn't work.
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

Before empty a table you have to verify if there are foreign keys or views.
EmptyDataset works fine but only on data cached and the results are not send to the db
stiff
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 04.06.2009, 00:20

How to empty ZTable

Post by stiff »

I am not familiar with cached data and where it is. I am running the embedded version of fb and have created a temp table that will hold entered data because the operation pops in and out of other Forms. When finished and in Formdestroy, the table should be emptied for the next usage.

How can the Emptydataset be coded if the data isn't needed anymore? It is saved to other tables before this op.
stiff
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 04.06.2009, 00:20

How to empty ZTable

Post by stiff »

The way to empty the table is with the SQL DELETE from ddl.
Post Reply