command クラス : NonQuery()メソッド
説明
SQL文を実行します。
構文
instance.NonQuery()
引数
無し。
返り値
| クラス | 説明 |
| int | 影響を受けた行数。 |
サンプルコード
| 1: | connection cnn = new connection("Data Source=c:\somedirectory\somedatabase.sqlite3;Version=3;"); |
| 2: | cnn.Open(); |
| 3: | command cmm = new command("create table sometable (id int, name text);", cnn); |
| 4: | int aff = cmm.NonQuery(); // It creates the "sometable". The return value is 0. |
| 5: | cmm.Release(); |
| 6: | cnn.Close(); |
| 7: | cnn.Release(); |
注意
無し。
参照リンク
無し。


