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

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

    To me it looks like you need to provide a way for the statement to return a value "Valid tokens: INTO" tells me that. I haven't used DESCRIBE before, but I would imagine that it returns something.

    Interactive SQL doesn't allow the command so I can't really help you much further than that.

    BTW, add the iSeries tag to your question. You might get a few more answers that way.

提交回复
热议问题