|
CURRENT_TIMESTAMP IN ORACLE
|
|
11-19-2009, 09:07 PM
(This post was last modified: 11-19-2009 09:08 PM by sandeep.)
Post: #1
|
|||
|
|||
|
CURRENT_TIMESTAMP IN ORACLE
Current Timestamp CURRENT_TIMESTAMP
Code: SELECT CURRENT_TIMESTAMP FROM dual;Loading current timestamps The Loader can insert values into columns with a timestamp data type based on a reading of the time-of-day clock. For example, the STARTDATE and ENDDATE of an offer in WebSphere Commerce can have values based on the time at which the offer is inserted into the table. To support this functionality, the Loader package uses the MLTIME table to keep the timestamp instances. The schema for this table is as follows: Code: table MLTIME1. Modify the values of the properties specified in the new Loader customizer property file. The name of the table and its columns can be customized by changing the following properties in the Loader customizer property file: Code: TimestampTableName = MLTIMEThe input data for specifying current-timestamp values are based on timestamp string patterns. The following masks are used for specifying the durations for the timestamp: %D for days %M for months %Y for years %H for hours %m for minutes %s for seconds You can customize current-timestamp formats by modifying or adding masks in the Loader customizer property file. The following input masks are provided: Code: InputCurrentTimestampFormat.1 = CURRENT TIMESTAMPInput data for the current timestamp is matched with the specified patterns. If the data matches a specified input pattern, that pattern is used to parse the input data and the Loader converts the data into the appropriate output format before inserting it into the database. New patterns can be added to the above list provided the subscript numbers are ordered sequentially. 2. Set the target output formats for specifying current timestamps: 1. CurrentTimestampFormat.Load is used when the Loader is operating in load or import mode. 2. CurrentTimestampFormat.JDBC is used when the Loader uses JDBC to insert, update, or delete values in the database. The default target patterns in the Loader are as follows: Code: CurrentTimestampFormat.Load = CURRENT TIMESTAMP %Y YEARS %M MONTHS %D DAYS When you customize the CurrentTimestampFormat.Load and CurrentTimestampFormat.JDBC properties, you should make sure that the syntax of the resulting statement is valid for the given database management system. The CurrentTimestampLiteral property is used by the Loader to make an early determination of whether the value for the timestamp column is in a current-timestamp format, thus avoiding expensive computations to determine that the value is not a string representation of timestamp. CurrentTimestampLiteral = CURRENT TIMESTAMP |
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help


