用BCB如何在ORACLE中执行DESC命令?
如题。
[解决办法]
oracle 能不能执行desc放到数据表或者临时表里,然后c++builder再select 查询
[解决办法]
desc可以执行吧,
用adoquery->ExecSQL();
只是看不到结果
[解决办法]
得在数据库中想办法,这个真不行
[解决办法]
感觉没有方法
http://www.itpub.net/thread-1034613-1-1.html
[解决办法]
据俺所知,非可以,你只能用OCI做,俺也遇到过个此个问题和疑问
http://hackdiy.com/I-4569982.html
[解决办法]
It's because "describe" is not a part of SQL. It is something that Oracle's sqlplus shell implements, not the server. There are other ways to get a list of columns in a table, if that's what you want. Check the DBI docs.
可直接用SQL代替:
select column_name, data_type, data_length, nullable from all_tab_columns where table_name = '你的表'