[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 791
  • Last Modified:

DB2 and DESCRIBE command

I have a table named ACCOUNT, and I verified its existence.

However I can not describe the table in order to verify its structure

What is wrong with the following command ?


db2 => DESCRIBE  ACCOUNT
SQL0104N  An unexpected token "ACCOUNT" was found following "DESCRIBE".
Expected tokens may include:  "OUTPUT".  SQLSTATE=42601
db2 =>
db2 =>
db2 => DESCRIBE  ACCOUNT;
SQL0104N  An unexpected token "ACCOUNT;" was found following "DESCRIBE".
Expected tokens may include:  "OUTPUT".  SQLSTATE=42601

Open in new window

0
Anthony Lucia
Asked:
Anthony Lucia
1 Solution
 
Kent OlsenData Warehouse Architect / DBACommented:
Need the keyword "table"

db2>  Describe table account

:)
Kent
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now