Home News DOC Class DL Others Rice
Class  >  connection  >  DropTable(string)
connection class : DropTable(string) method

Description

Deletes the table.

Syntax

instance.DropTable(string name)

Arguments

ClassNameDescription
stringnameTable name.

Return value

None.

Sample code

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();

Notes

Creates and executes an DROP TABLE statement. In the above sample code, the following SQL statement will be created.

drop table example_tbl;

Links for reference

None.

Copyright © Rice All rights reserved.