How to convert a string to a date in sybase

前端 未结 4 1566
甜味超标
甜味超标 2020-12-08 08:16

I need to specify a date value in a sybase where clause. For example:

select * 
from data
where dateVal < [THE DATE]
4条回答
  •  鱼传尺愫
    2020-12-08 08:56

    Here's a good reference on the different formatting you can use with regard to the date:

    http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc38151.1510/html/iqrefbb/Convert.htm

提交回复
热议问题