DB2: Comandos Database: Difference between revisions

From Wiki
No edit summary
No edit summary
 
Line 6: Line 6:
  AUTOCONFIGURE  xxxx
  AUTOCONFIGURE  xxxx
  APPLY
  APPLY
== Conexões ==
DB2 LIST APPLICATIONS [SHOW DETAIL]  -> mostra todas as conexões
DB2 FORCE APPLICATION [ALL | xxxx] -> desconecta todos os usuários
DB2 LIST TABLES [FOR ALL | FOR SCHEMA xxxx]  -> mostra a tabela de usuários
DESC TABLE <nowiki><table></nowiki> -> mostra estrutura da tabela
GET INSTANCE -> mostra a instância


== Ver também ==
== Ver também ==

Latest revision as of 12:00, 15 May 2025

Comando CREATE DATABASE

CREATE DATABASE <dbname>
ON <arquivo>
AUTOCONFIGURE  xxxx
APPLY

Conexões

DB2 LIST APPLICATIONS [SHOW DETAIL]  -> mostra todas as conexões
DB2 FORCE APPLICATION [ALL | xxxx]	 -> desconecta todos os usuários
DB2 LIST TABLES [FOR ALL | FOR SCHEMA xxxx]  -> mostra a tabela de usuários
DESC TABLE <table> -> mostra estrutura da tabela
GET INSTANCE -> mostra a instância


Ver também