📜  SQL Server 日期文字 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:09.134000             🧑  作者: Mango

代码示例1
--DateTime
SELECT {ts'2015-09-20 12:30:00'}
--Time (however this comes with "today"-time)
SELECT {t'12:30:00'}
--Date
SELECT {d'2015-09-20'}
GO