Skip to content

Instantly share code, notes, and snippets.

@lumentut
Created May 12, 2020 09:02
Show Gist options
  • Save lumentut/2ad1568376defb3e87bb5219549c9144 to your computer and use it in GitHub Desktop.
Save lumentut/2ad1568376defb3e87bb5219549c9144 to your computer and use it in GitHub Desktop.
SQL> select column_name, column_def from sysibm.sqlcolumns where table_name='BOOKS' and table_schem='LIBTEST'
+---------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| COLUMN_NAME | COLUMN_DEF |
+---------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| AUTHOR_VISIBILITY | 0 |
| STATUS | 0 |
| READ_STATUS | 0 |
| NULLABLE_STATUS | 0 |
| LANGUAGE | 0 |
| ILLUSTRATOR_VISIBILITY | 0 |
| ID | ID |
| FONT_SIZE | 0 |
| COVER | 'hard' |
| NAME | '' |
| FORMAT | '' |
+---------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SQLRowCount returns -1
11 rows fetched
SQL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment