argument(s) | description |
string q | The SQL query This function sends an SQL query to the Mysql-server. The result of the query is returned as a Mysql.mysql_result object. Returns 0 if the query didn't return any result (e.g. INSERT or similar). |
argument(s) | description |
string database | Name of the database to be created This function creates a new database in the Mysql-server. |
argument(s) | description |
string database | Name of database to be dropped This function drops a database from a Mysql-server. |
"name": string The name of the field. "table": string The name of the table. "default": string The default value for the field. "type": string The type of the field. "length": int The length of the field. "max_length": int The length of the longest element in this field. "flags": multiset(string) Some flags. "decimals": int The number of decimalplaces.The type of the field can be any of: "decimal", "char", "short", "long", "float", "double", "null", "time", "longlong", "int24", "tiny blob", "medium blob", "long blob", "var string", "string" or "unknown". The flags multiset can contain any of "primary_key": This field is part of the primary key for this table. "not_null": This field may not be NULL. "blob": This field is a blob field.
argument(s) | description |
string table | Name of table to list the fields of |
string wild | Wildcard to filter the result with |
show fields in 'table' like "wild"
argument(s) | description |
string wild | Wildcard to filter with. Returns a table containing the names of all tables in the current database. If an argument is given, only those matching wild are returned. |
int main() { write(mysql()->statistics()); return(0); }