关于时间格式的转换?
declare @pono varchar(10)
declare @itemno varchar(21)
declare @inspdate datetime
select count(*) from product where pono = @pono and itemno = @itemno and indate = @inspdate
以上语句书写有问题,在indate = @inspdate中有问题,好象必须是indate = '2003-10-10'这种格式,请问如何将datetime格式转换为字符格式?