What is {ts '2013-04-02 00:00:00'}?

前端 未结 1 1219
慢半拍i
慢半拍i 2021-01-01 19:07

when i analyzing running T-SQL I found a query that have {ts \'2013-04-02 00:00:00\'} in where clause. i was so curious about this and tried to find the so

相关标签:
1条回答
  • It's an ODBC literal escape sequence

    ODBC defines escape sequences for date, time, and timestamp literals. The syntax of these escape sequences is as follows:

    {ts 'value'}
    

    where we can use it?

    Anywhere where a datetime value is expected. ("timestamp" is SQL Standard vernacular for what SQL Server calls datetime).

    0 讨论(0)
提交回复
热议问题