Home | Trees | Indices | Help |
|
---|
|
sql [DB] QUERY
Executes a sql query on a specified database. Occurrences of
formatting directives (e.g. %s
) will be replaced by input
values.
The database is selected by DB
. If DB
matches an osh.sql
profile in .oshrc
, then the
database is specified by that profile. If DB
is omitted,
then the default profile is used.
QUERY
is a select statement, then the query is
executed and output rows, represented by tuples, are written to output.
If QUERY
is any other type of SQL statement, then no output
is written.Functions | |||
|
Function Details |
%s ) will be replaced by input
values. The database is selected by db . If db
matches an osh.sql profile in .oshrc , then the
database is specified by that profile. If db is
None , then the default profile is used. If
QUERY is a select statement, then the query is
executed and output rows, represented by tuples, are written to output.
If QUERY is any other type of SQL statement, then no output
is written.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Sat Oct 6 12:15:11 2007 | http://epydoc.sourceforge.net |