|
I’ve been trying to query a DB2 database for column names using the following:
Select COLUMN_NAME from QSYS2.COLUMNS WHERE (TABLE_NAME =3D 'VART00P') AND (TABLE_SCHEMA =3D 'GSIS')
Or
SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE (TABLE_NAME =3D 'VART00P') AND (TABLE_SCHEMA =3D 'GSIS')
It seems to balk at the .COLUMNS piece by saying it's not valid. Perhaps the fact that these are all views rather than physical tables is the issue but I'm not sure. The above SQL works in the SQL client software I use on my desktop such as Squirrel and DBVisualizer. Any thoughts????
Bernie Lavallee
|
