HPlogo ALLBASE/SQL C Application Programming Guide: HP 9000 Computer Systems > Chapter 11 Programming with ALLBASE/SQL Functions

Where Date/Time Functions Can Be Used

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Use date/time functions, as you would an expression, in the DML operations listed below:

Table 11-1 Where to Use Date/Time Functions

DML OperationClause
[BULK]INSERT [1]VALUES
 WHERE
UPDATE orSET
UPDATE WHERE CURRENTWHERE
DELETE orWHERE
DELETE WHERE CURRENT 
[BULK]SELECTSelect list [2]
 WHERE
DECLARESelect list [2]
 WHERE

[1] In the case of a [BULK] INSERT, output functions, TO_CHAR and TO_INTEGER, and the ADD_MONTHS function, are limited to use in the select list and the WHERE clause of a Type 2 INSERT.

[2] Input functions, TO_DATE, TO_TIME, TO_DATETIME, and TO_INTERVAL, are generally not appropriate in a select list.

 

Feedback to webmaster