Trouble with TMyQuery.SQLDelete
Posted: Wed 25 Jan 2006 03:14
With BDE, i can modify the generated query at SQLInsert, SQLUpdate or SQLDelete. Especially when I wanted to do some cascading delete or update.
Something like this:
-- I added this
DELETE table_detail
WHERE field1 = :old_key1
-- automatically generated
DELETE table_master
WHERE field1 = :old_key1
However, it does not work with MyDac. Error. And I can't use semicolon to separate each command either.
Need help, please.
Something like this:
-- I added this
DELETE table_detail
WHERE field1 = :old_key1
-- automatically generated
DELETE table_master
WHERE field1 = :old_key1
However, it does not work with MyDac. Error. And I can't use semicolon to separate each command either.
Need help, please.