SQL语句查询某个时间段的信息出错
程序如下,这是一个将值传递给存储过程的程序.执行后错误提示是:"2007附近有语法错误",后来我尝试将双引号改为单引号还是不行.各位老大帮帮忙啊!
declare @p1 int
set @p1=0
declare @p2 int
set @p2=6
exec ord_SalesOrderSelect @p1 output,@p2
output,NULL,NULL,NULL,NULL,NULL,NULL,'76752317-5EC1-4D51-B298-5A28AA798FAD',NULL,NULL,NULL,NULL,''2007-06-30
00:00:00:000'',''2007-06-30 00:00:00:000'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
select @p1, @p2