简体   繁体   中英

How to insert simultaneously same data into two differentes table on delphi

I have two tables purchase and stock (paradox 7 in delphi), so I want when I insert some new data in the table "purchase" will be added simultaneously in "stock" table.

If someone knows how it works or else say how to do it with SQL.

Use 2 Tquery (master + detail). Assemble instructions and relationships. Put a Provider, connect it to the tquery-Master. Place 2 TClientDataset. Connect the 1st to the provider (providername) The second call tdatasetfield for the 2nd Query (detail).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM