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

后端 未结 4 1364
渐次进展
渐次进展 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:52

    This statement can only be embedded in an application program. It is an executable statement that cannot be dynamically prepared. It must not be specified in Java.

    From the iSeries DB2 SQL Reference.

提交回复
热议问题