Function
sql
create-table name description &key database =>
The name of the table.
The table properties.
A database.
create-table function creates a table called name and defines its columns and other properties with description. The argument description is a list containing lists of attribute-name and type information pairs. *default-database*.
(create-table [manager]
'(([id] (char 10) not-null)
([salary] (number 8 2))))
is equivalent to the following SQL:
CREATE TABLE MANAGER (ID CHAR(10) NOT NULL,SALARY NUMBER(8,2))
drop-table