NAME

query - queries the database

SYNOPSIS

query [weather] [names] [id]

DESCRIPTION

query is a wrapper around a mysql query to the database. The query is expected as stdin and the result will be placed in stdout. Here is the code:

Press button for current code:

OPTIONS

weather - sends the query to the weather rather than the observatory database.

id - returns the value of the last auto_increment id using the mysql function last_insert_id(). Use this when INSERTING data.

names - puts the field names as the first line.


Program index