Function
sql
create-view name &key as column-list with-check-option database =>
The view to be created.
An SQL query statement.
A list.
A boolean.
A database.
create-view function creates a view called name using the as query and the optional column-list and with-check-option. The column-list argument is a list of columns to add to the view. The with-check-option addsWITH CHECK OPTION to the resulting SQL. nil. The default value of database is*default-database*. manager with the records in the employee table whose department is 50.
(create-view [manager] :as [select [*]
:from [emp]
:where [= [dept] 50]])
create-indexcreate-tabledrop-view