MySql, Firebird delete command

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
isysoftware
Posts: 44
Joined: Wed 14 Nov 2012 17:33

MySql, Firebird delete command

Post by isysoftware » Mon 15 Apr 2013 14:40

Hi All,

I have developed an application (Delphi) over a MysQL Database.
Now, I'm changing MySql by Firebird.
I'm using the same components Unidac.

I have a problem with DELETE Sql statement:

In MySql: 'delete table.* from table'
In Firebird: 'delete from table'

So I need to change my source code for firebird.

There's a way to have a delete statement that works whit mysql and firebird without change my code?

Thanks

AndreyZ

Re: MySql, Firebird delete command

Post by AndreyZ » Wed 17 Apr 2013 07:13

Hello,

You can use the following statement for both MySQL and Firebird:

Code: Select all

delete from tablename

Post Reply