How to insert DEFAULT?
Posted: Mon 19 Jan 2015 14:55
I'm using a TUniQuery Component and I'm able to construct an SQL command string to insert new data to a table. Now I'm testing TUniQuery::SQLInsert and fields to prevent me from building commands on string level. As I have found out field names have to be defined in the TUniQuery::SQLInsert::Text and their values have to be set before a TUniQuery::Post is called.
Sometimes I want to set a value for the field but in other situations I would like the database set their default value for it. In other words I'd like to pass a DEFAULT then. How can I do this without altering the TUniQuery::SQLInsert::Text?
Sometimes I want to set a value for the field but in other situations I would like the database set their default value for it. In other words I'd like to pass a DEFAULT then. How can I do this without altering the TUniQuery::SQLInsert::Text?