command class : CommandText(string) setter
Description
Sets a SQL statement.
Syntax
instance.CommandText = value;
Assigned value
Class | Description |
string | A SQL statement. |
Return value
None.
Sample code
1: | connection cnn = new connection("Data Source=c:\somedirectory\somedatabase.sqlite3;Version=3;"); |
2: | cnn.Open(); |
3: | command cmm = new command(cnn); |
4: | cmm.CommandText = "create table sometable (id int, name text);"; |
Notes
None.
Links for reference
None.