Public Vars

Back

insert-into (clj)

(source)

function

(insert-into table) (insert-into table cols) (insert-into table statement) (insert-into table cols statement)
Accepts a table name or a table/alias pair. That can optionally be followed by a collection of column names. That can optionally be followed by a (select) statement clause. (insert-into :table) (insert-into [:table :t]) (insert-into :table [:id :name :cost]) (insert-into :table (-> (select :*) (from :other))) (insert-into [:table :t] [:id :name :cost] (-> (select :*) (from :other)))

Examples