Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

How to get the name of a table from an Insert, Update or Delete SQL without parsing - response (2) by tomnolan

$
0
0

Table name is available for SELECT query results from the ResultSetMetaData.getTableName method.

But there is no easy way (and no JDBC API method) to obtain a table name for an INSERT, UPDATE, or DELETE.

Prepending EXPLAIN or SHOW QUALIFIED to the SQL request may be the best way to get the information.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>