Updating tables - Select / Union all statement

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
rogeriobrito
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 04.12.2007, 16:29

Updating tables - Select / Union all statement

Post by rogeriobrito »

Hi.

I've a TZquery using a select / union all statement to join 2 tables in a Datagrid.
When I edit the data in the datagrid the tables are not updated.
Is there a way to do that?

Its a Mysql database.

Thanks a lot.
Rogerio
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

You will have to use a TZUpdateSQL component. Select/Union all can't be resolved by the TZQuery component because of 'too complex'. How you do that can you find easily in Delphi Help. Just look for 'TUpdateSQL Component'. Behaviour should be similar/equal.

Mark
rogeriobrito
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 04.12.2007, 16:29

Post by rogeriobrito »

Yes mdaems, that's it,

Thank you very much.

[]s
Rogerio
Post Reply