阿摩線上測驗 登入

申論題資訊

試卷:98年 - 98 調查特種考試_三等_資訊科學組:資料庫運用#47834
科目:資料庫運用
年份:98年
排序:0

題組內容

三、一個函數(Function),給定一課程,計算出其成績中之最高分,其 T-SQL 如下: Create function 最高分 (@課程 char(10)) Return int Begin Declare @成績 int Select @成績=成績 From 成績 Where 課程=@課程 Order by 成績 desc If @@rowcount=0 Return 0 Return @成績 End 請說明:

申論題內容

⑵ Function 與 Stored Procedure 有何不同?(10 分)