Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HQL を使用してテーブルの列名を取得し、リストに同じものを入力したいですか?..ガイドしてください。IBM DB2 データベースを使用しています。
I have not tested, but you can query the DB2 catalog in order to get the metadata. If you execute the equivalent in HQL, it should work
select colname from syscat.columns where tabschema like 'MYSCHEMA%' and tabname = 'MYTABLE' order by colno