CREATE PROCEDURE dbo.getMaxDateime_pro
( @tagname nvarchar,
@maxDateTime Datetime output
)
AS
/* SET NOCOUNT ON */
SET NOCOUNT ON
select @maxDateTime = max([datetime1]) from phddata where [ID]=@tagname
RETURN 0
不能
( @tagname nvarchar,
@maxDateTime Datetime output
)
AS
/* SET NOCOUNT ON */
SET NOCOUNT ON
select @maxDateTime = max([datetime1]) from phddata where [ID]=@tagname
RETURN 0
不能
不可以是时间