Page 1 of 1

How can I do empty table in the UniTable ?

Posted: Fri 29 Oct 2010 09:13
by Fastex
I want clear table like in component TTable->EmptyTable(). How can I do this ?

Posted: Fri 29 Oct 2010 10:52
by AlexP
Hello,

We will investigate the possibility of adding the EmptyTable method in one of the next builds/versions of MyDAC.
For the time being you can use the TUniConnection.ExecSQL function to clear your table.
The Sql syntax depends on your database.
For most databases you can use the following SQL code:
'DELETE FROM YOUR_TABLE_NAME'