How Do You Get a View's Columns? JDBC

To get a database view’s columns, you can use the GetColumns servlet and, for the table parameter, pass the name of your desired database view name. Next, I’ll show you how to the get the columns of views from MySQL and Oracle databases.

MySQL Database Setup

Oracle Database Setup

Invoking GetColumns for MySQL

Figure : shows how to run the solution for the MySQL database.

Invoking GetColumns for MySQLInvoking GetColumns for MySQL

Invoking GetColumns for Oracle

Figure : shows how to run the solution for the Oracle database.

Invoking GetColumns for OracleInvoking GetColumns for Oracle

Face Book Twitter Google Plus Instagram Youtube Linkedin Myspace Pinterest Soundcloud Wikipedia

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

JDBC Topics