我想将 GetDate() 设置为默认参数值。但它显示错误。下面是我的代码块:
Create Proc XYS
(
@myDate datetime = GetDate() //error
)
AS
SET @myDate = GetDate() // i can do this but neither i want this nor I want to
pass current date from front end or upper layer
....
....
据我所知,此级别不支持函数/动态值,而是允许我们使用硬编码值。任何解决方法?