Date, time, and timestamp escape sequences
- Last Updated: October 27, 2017
- 1 minute read
- DataDirect Connectors
- JDBC
- Aha! 6.0
- Amazon Redshift 6.0
- Apache Cassandra 6.0
- Apache Hive 6.0
- Apache Spark SQL 6.0
- Atlassian Jira 6.0
- Autonomous REST Connector 6.0
- Cloudera Impala 5.1
- + 24
The escape sequence for date, time, and timestamp literals is:
{literal-type 'value'}
where:
- literal-type
- is one of the following:
| literal-type | Description | Value Format |
|---|---|---|
| d | Date | yyyy-mm-dd |
| t | Time | hh:mm:ss [] |
| ts | Timestamp | yyyy-mm-dd hh:mm:ss[.f...] |
Example:
UPDATE Orders SET OpenDate={d '1995-01-15'} WHERE OrderID=1023