为什么我在这种情况下创建的这个函数是非确定性的?
CREATE FUNCTION [dbo].[ufn_max_smalldatetime] ()
RETURNS SMALLDATETIME
WITH SCHEMABINDING
AS
BEGIN
RETURN '2079-06-09'
END
为什么这个函数在这种情况下是确定性的?
CREATE FUNCTION dbo.[ufn_max_smalldatetime]()
RETURNS SMALLDATETIME
WITH SCHEMABINDING
AS
BEGIN
RETURN CONVERT(SMALLDATETIME, '2079-06-09' ,112)
END