![]()
![]() ![]() ![]() ![]() ![]() ![]() ![]() Documentation Top ![]() Global Index ![]() Reference Manual ![]() ![]() ![]() Developer's Guide ![]() ![]() Tuning Cloudscape ![]() ![]() |
VALUES expressionThe VALUES expression allows construction of a row or a table from other values. You use a VALUES statement when you do not have a FROM clause. This construct can be used in all the places where a query can, and thus can be used as a statement that returns a ResultSet, within expressions and statements wherever subqueries are permitted, and as the source of values for an INSERT statement. A common use of the VALUES clause is to call a static method that returns a value or to call a method on an object not serialized in the database that returns a value. Syntax
ValueThe first form constructs multi-column rows. The second form constructs single-column rows, each expression being the value of the column of the row. The DEFAULT keyword is allowed only if the VALUES expression is in an INSERT statement. Specifying DEFAULT for a column inserts the columns default value into the column. Another way to insert the default value into the column is to omit the column from the column list and only insert values into other columns in the table. In a Cloudscape synchronization system, you can use the third form of the VALUES clause to invoke a work unit, a type of method alias registered with the system in which only the method call and target parameter values are replicated, not any underlying statements. The parameters are applied at the target when VALUES is applied at the target, and they are saved and sent to the source for use during the next refresh. For more information about work unit invocation, see the Cloudscape Synchronization Guide. Example
| ||
![]() ![]() ![]() ![]() ![]() ![]() | ![]() ![]() Cloudscape Version 3.0 ![]() For technical support, go to: www.cloudscape.com and click Support. Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved. |