Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何调用具有日期输入的存储过程。
spName getDate()
不起作用。
问题是关于在 ms sql 管理工作室中调用。
SQL Server 2008
declare @d date = getdate() /*Or datetime looking at the title*/ exec spName @d
早期版本
declare @d datetime set @d = getdate() exec spName @d