php + unixODBC + DB2 + DESCRIBE = token not valid?

后端 未结 4 1376
渐次进展
渐次进展 2021-01-16 11:04

Code I am trying to run:

$query = \"DESCRIBE TABLE TABLENAME\";
$result = odbc_exec($h, $query);

The result:

PHP War

4条回答
  •  醉话见心
    2021-01-16 11:36

    If you just need the column names try

    select * from  where 0 = 1
    

    I don't know how to get the column types, indexes, keys, &c

    提交回复
    热议问题