- create
If use ExecuteNonQuery to create or modify database structure, eg. create table, this method returns -1 if success, returns 0 if fail.
ExecuteNonQuery 用來創建或修改資料庫的結構,如建立table,成功回1,失敗回0
- INSERT, UPDATE, DELETE
If use ExecuteNonQuery to INSERT, UPDATE, DELETE, this method returns the Number of affected data row, but if fail, it returns 0.
如果用來新增修改刪除,成功它會返回受影響的列數,失敗回0.
沒有留言:
張貼留言