Code I am trying to run:
$query = \"DESCRIBE TABLE TABLENAME\"; $result = odbc_exec($h, $query);
The result:
PHP War
The iSeries flavor of DB2 does not support the SQL DESCRIBE statement. Instead, you have to query the system table:
select * from qsys2.columns where table_schema = 'my_schema' and table_name = 'my_table'