PreviousData Provider for .NET Guide (9.1 revision 1) Next

Date, Time, and Timestamp Escape Sequences

Show this topic in Library frames

The escape sequence for date, time, and timestamp literals is:

{literal-type 'value'} 

where literal-type is one of the following:

Table A-1 Escape Sequences for Literal Values
literal-type
Description
Value Format
d
Date
yyyy-mm-dd
t
Time
hh:mm:ss [1]
ts
Timestamp
yyyy-mm-dd hh:mm:ss[.f...]

Example:

UPDATE Orders SET OpenDate={d '1997-01-29'} 
WHERE OrderID=1023 

Chapter contents
Publication contents

Prev topic: SQL Escape Sequences for .NET
Next topic: Scalar Functions