sql中print的用法 sql存儲(chǔ)過(guò)程output參數(shù)的使用?
sql存儲(chǔ)過(guò)程output參數(shù)的使用?Output是存儲(chǔ)過(guò)程返回的值,或者輸出值--創(chuàng)建一個(gè)存儲(chǔ)過(guò)程以獲得最大值umax]@a int,-input@b int,-input@returnc int
sql存儲(chǔ)過(guò)程output參數(shù)的使用?
Output是存儲(chǔ)過(guò)程返回的值,或者輸出值--創(chuàng)建一個(gè)存儲(chǔ)過(guò)程以獲得最大值umax]@a int,-input@b int,-input@returnc int output—輸出為if(@a>@b)設(shè)置@Returnc=@aelse公司設(shè)置@Returnc=@b--調(diào)用declare@return int exec p_max2,3,@Returnc output select@Returnc