Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Why do you need to do this as a check? What are you checking? The reason I ask is that this check may cause you problems and may not be efficient. For example, what happens if you carry out the check and another process does something to the table? If you need to do a check before each insert, that is a query and an insert for every insert. That is a lot more expensive than using a sequence, for example.
If you tell us what the check is for, we may be able to suggest an efficient mechanism for achieving this. At the moment, it sounds like you want to do a query before every insert. If that is the case, why not create a function to query the column for you and call that function in the Advanced tab of the t{database}Output component?
Why do you need to do this as a check? What are you checking? The reason I ask is that this check may cause you problems and may not be efficient. For example, what happens if you carry out the check and another process does something to the table? If you need to do a check before each insert, that is a query and an insert for every insert. That is a lot more expensive than using a sequence, for example.
If you tell us what the check is for, we may be able to suggest an efficient mechanism for achieving this. At the moment, it sounds like you want to do a query before every insert. If that is the case, why not create a function to query the column for you and call that function in the Advanced tab of the t{database}Output component?