TUniQuery: Turn an update into an insert.
Posted: Wed 06 Jun 2012 22:33
I have a TUniQuery with SqlInsert and SqlUpdate properties specified. The update works fine. I want to execute the insert statement if a certain field is null. I figure it would involved the OnUpdateRecord event and a method call to apply a certain Sql statement, like TUpdateSQL.Apply method.
What's the best way to accomplish this?
What's the best way to accomplish this?