像这样的东西怎么样:
CREATE FUNCTION [dbo].[testbigint]
(
@int1 bigint,
@int2 bigint
)
RETURNS bigint
AS
BEGIN
-- Declare the return variable here
DECLARE @returnVal bigint
set @returnVal = @int1* @int2
-- Return the result of the function
RETURN @returnVal
END