How to view the table structure in DB2 database
相关问题
- What is the best way to handle BOOLEAN values in D
- SQL1032N No start database manager command was iss
- COBOL DB2 program
- SQL LIKE Column Value Plus Wildcard DB2
- copying a very large table from one DB2 to another
相关文章
- Escape percentage sign DB2 SQL
- DB2 SQL error: SQLCODE: -206, SQLSTATE: 42703 [clo
- Extra rows being received when matching pairs in S
- How to check DB2 SYSADM or SYSCTRL authorization f
- Which is the Best database for Rails application?
- How do I get connection pooling working on a PHP-C
- Why can't my As400 select from a newly created
- Where do I download JDBC drivers for DB2 that are
I am running DB2/LINUXX8664 10.5.3 and
describe select * from schema_name.table_name
works for me.However,
describe table schema_name.table_name
fails with this error:SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table. SQLSTATE=02000
I got the answer from the
sysibm.syscolumns
Follow this simple steps:
You can Get the table meta data using this query
1.use db2 describe table
2.use db2 describe output
3.use db2look utility
4.find rows in db2 syscat
Generally it's easiest to use DESCRIBE.
or
etc.
See the documentation: DESCRIBE command