@@Error  回傳最近一次 SQL 執行結果的錯誤代碼,若成功執行,則回傳 0
Returns the error number for the last Transact-SQL statement executed.
Returns 0 if the previous Transact-SQL statement encountered no errors.

@@RowCount  回傳最近一次 SQL 執行結果影響的資料列筆數
Returns the number of rows affected by the last statement.

文章標籤
全站熱搜
創作者介紹
創作者 Aixo 的頭像
Aixo

Aixo

Aixo 發表在 痞客邦 留言(0) 人氣(2,786)