informix数据库中怎么判断一个表是否存在?(esql/c)

请问怎么判断数据库中的一个表是否存在?有没有直接提供的语句查询?
---------------------------------------------------------------

select count(*) from tablename
判断SQLCA.SQLCODE 是否等于 -206
哈哈,这个好么?
---------------------------------------------------------------

比较好点的。
select * from systables
where tabname = "tablename"
判断SQLCA.SQLCODE 是否等于 100

哈哈,这个好么?

Published At
Categories with 服务器类
comments powered by Disqus