datecolumn。假设它是类型
Date:
select * from tbl_name where datecolumn = cast(getdate() as Date)
如果是
DateTime:
select * from tbl_name where cast(datecolumn as Date) = cast(getdate() as Date)
欢迎分享,转载请注明来源:内存溢出
datecolumn。假设它是类型
Date:
select * from tbl_name where datecolumn = cast(getdate() as Date)
如果是
DateTime:
select * from tbl_name where cast(datecolumn as Date) = cast(getdate() as Date)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)