From 94231322c0a3aad8cb099bb6b0e8bfa71b13e402 Mon Sep 17 00:00:00 2001 From: Andres Gomez Casanova Date: Mon, 7 Jan 2019 11:54:35 -0500 Subject: [PATCH] Create general --- sheets/_db2/general | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sheets/_db2/general diff --git a/sheets/_db2/general b/sheets/_db2/general new file mode 100644 index 0000000..50fb55f --- /dev/null +++ b/sheets/_db2/general @@ -0,0 +1,35 @@ +--Define a terminator character +--#SET TERMINATOR @ + +--List all databases (aliases) +LIST DB DIRECTORY + +--Connect to a database (alias) +CONNECT TO mydb + +--Disconnect from a database +CONNECT RESET +TERMINATE + +--Get values from the environment (registry values) +-- Current timestamp +VALUES CURRENT TIMESTAMP + +-- Connected user +VALUES CURRENT USER + +-- Current database +VALUES CURRENT SERVER + +--Change current schema +SET CURRENT SCHEMA otherschema + +--Change the isolation level +SET ISOLATION RR + +--Get help for a Db2 command +? command + +--Get help for a SQL code (SQLXXXX) or SQLstate (YYYYY) +? SQLXXX +? YYYYY