createtable | Back | Forward | Home |
'Language Reference' User Functions Database Functions Data Manipulation Functions Table Functions Error Handling Functions |
This function will create a txtSQL table with the name $tablename, as long as it does not already exist. The columns that will be in this table will be defined in $columns part of the array. $columns must be an array in the following format array([$columnName => array([$coltype => $value]...)]... ) For more information on on column types, see the column types section Important- To achieve the same results as this function before txtSQL 2.2.2 RC2, use the execute() function Note- If $tablename already exists, txtSQL will issue an error Note- If no $db is specified and no database is already selected, txtSQL will issue an error
|