HOW TO

Describe the columns in a RDBMS table

Last Published: April 25, 2020

Summary

Though it may seem like a fundamental tool for SQL programmers and DBAs, the method for describing the columns in a RDBMS table from the SQL command line varies from vendor to vendor. This is how some of the major vendors do it.

Procedure



  • Oracle:

    DESCRIBE tablename;

  • Informix:

    INFO COLUMNS FOR tablename;

  • IBM DB2:

    There is no built-in command. Instead, you need to query from the system catalogue for this information.

    SELECT COLNAME,TABSCHEMA,TABNAME FROM SYSCAT.COLUMNS WHERE TABSCHEMA='owner' AND TABNAME='tablename';

Article ID:000001977

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic