Home > database >  Create a function, calculating the value of combined key and write call this function to compute the
Create a function, calculating the value of combined key and write call this function to compute the

Time:10-04

The create function jc (@ m int, @ n int)
Returns the int
As
The begin
Declare @ int x
The set @ x=(select dbo. Jiecheng (@ m)/
((select dbo. Jiecheng (@ n)) * (select dbo. Jiecheng (@ m - @ n))))
Return the @ x
End
Why call this function after no results show

CodePudding user response:

In a database called directly have effect?
The SELECT dbo. Jc (1, 2)

CodePudding user response:

The results display is null, no
  • Related