Using INSERT ... SELECT with a DEFAULT Function
The following rules apply when using a DEFAULT function to load a table using an INSERT SELECT operation:
- All of the rules listed for DEFAULT Function in SELECT Statements also apply the SELECT subquery in an INSERT ... SELECT request.
- The DEFAULT function cannot be specified without a column name as its argument within the SELECT subquery of an INSERT ... SELECT request.
Using a PERIOD Value Constructor with INSERT
For the rules on using PERIOD value constructors, see Period Value Constructor. For examples of how to use PERIOD value constructors in INSERT requests, see Example: INSERT Using a PERIOD Value Constructor.
INSERT and Scalar UDFs
You can specify a scalar UDF as a column value in the VALUES clause of an INSERT request. The rules for the invocation of a scalar UDF in a VALUES clause are as follows.
- A scalar UDF that passes a value in the VALUES list of an INSERT request must return a value expression.
- The arguments passed to a scalar UDF must be constants, USING values, or parameters that resolve to a constant.