Entering content frame

Specifying Values (value_spec) 

Values can be specified ( value_spec) by specifying literals, parameter specifications, or a series of keywords.

Syntax

<value_spec> ::= <literal> | <parameter_spec>
| NULL | USER | USERGROUP | SYSDBA | UID
| [<owner>.]<sequence_name>.NEXTVAL | [<owner>.]<sequence_name>.CURRVAL
| <table_name>.CURRVAL
| DATE | TIME | TIMESTAMP | UTCDATE | TIMEZONE | UTCDIFF
| TRUE | FALSE | TRANSACTION

literal

Literal

parameter_spec

Parameter specification

NULL

NULL value

USER

Current user name

USERGROUP

Name of the user group to which the user calling the SQL statement belongs. If the user does not belong to a user group, the user name is displayed.

SYSDBA

Database system administrator (SYSDBA user) of the database instance

UID

Identification of the current user. This is a whole number.

[<owner>.]<sequence_name>.NEXTVAL

Next value generated for the specified sequence name (of the owner in question).

[<owner>.]<sequence_name>.CURRVAL

Value that was generated using [<owner>.]<sequence_name>.NEXTVAL as the final value for the specified sequence name.

<table_name>.CURRVAL

Last assigned value of the serial column in the  table_name table in the current database session.

DATE

Current date

TIME

Current time

TIMESTAMP

Current timestamp

UTCDATE

Current UTC time stamp (Greenwich Mean Time)

TIMEZONE

Time difference in hours in the format hhmmss (in data type FIXED(6)) between your local time value and the UTC time value (Greenwich Mean Time)

UTCDIFF

Time difference in hours (in data type FIXED(4,2)) between your local time and the UTC time value.

TRUE | FALSE

Corresponding value of a column of the data type BOOLEAN

TRANSACTION

Identification of the current transaction. This is a value of data type CHAR(10) BYTE.

 

 

Leaving content frame