Use the CCL language's Database Statement to write data to a kdb+ database.
The Database Statement uses a mix of CCL and q syntax.
EXECUTE STATEMENT DATABASE clause
Specifies the name of an external relational database connection and the SQL or q statements that should be executed against the database.