command class : command(string) fitter

Description

Returns a new instance of command class.

Syntax

new command(string commandText)

Arguments

ClassNameDescription
stringcommandTextSQL statement.

Return value

ClassDescription
commandA new instance of command class.

Sample code

1:

command cmm = new command("create table sometable (id int, name text);");

Notes

The returned instance has been initialized but database connection has not been set.

You need to set the database connection in the Connection getter.

Links for reference

None.

Copyright © Cooker All rights reserved.