I need to define a column to contain a unique value (across the table), with the value automatically generated on insert and on update without using a trigger and without explicitly specifying the column in the insert/update statement.
This would be similar to SqlServer "timestamp" datatype, which is always updated and does not require a trigger or explicit reference in the insert/update statement.
I have looked into identity columns, sequences, and generate_unique (), but in all cases, to get the value updated, a trigger is needed. (Inserts are fine.)
Any ideas on how to do this?
This would be similar to SqlServer "timestamp" datatype, which is always updated and does not require a trigger or explicit reference in the insert/update statement.
I have looked into identity columns, sequences, and generate_unique (), but in all cases, to get the value updated, a trigger is needed. (Inserts are fine.)
Any ideas on how to do this?
Comment