connection クラス : DropTable(string)メソッド
説明
テーブルを削除します。
構文
instance.DropTable(string name)
引数
| クラス | 名前 | 説明 |
| string | name | テーブル名。 |
返り値
無し。
サンプルコード
| 1: | connection cnn = new connection("Data Source=c:\somedirectory\somedatabase.sqlite3;Version=3;"); |
| 2: | cnn.Open(); |
| 3: | dictionary{string} ds; |
| 4: | ds.Add("ids","integer"); |
| 5: | ds.Add("textdata","text"); |
| 6: | // create table example_tbl(ids integer, textdata text); |
| 7: | cnn.CreateTable("example_tbl", ds); |
| 8: | // drop table example_tbl; |
| 9: | cnn.DropTable("example_tbl""); |
| 10: | cnn.Close(); |
| 11: | cnn.Release(); |
注意
DROP TABLE文を作成して実行します。上記のサンプルコードならば以下のSQL文が作成されます。
drop table example_tbl;
参照リンク
無し。


