Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

How to specicy table on HCP env in JDBC program

$
0
0

Hi,

 

Very new to HCP.

On HCP, I made a table named "CustomerMaster.hdbtable".

 

For my very simple JDBC program, I opened DB-Tunnel and I found out that it works.

In JDBC, I can see the JDBC result with the sql statement below.

 

//sql = "SELECT TABLE_NAME, TABLE_TYPE FROM SYS.M_TABLES ";

 

I want to query the rows of "CustomerMaster.hdbtable" though.

Creating a table seems to be very different from the normal Oracle style in HCP.

I'm not trying to use Hana Studio for doing that. Just JDBC and HCP.

 

How can I access the table in my JDBC program?

 

// JDBC driver name and database URL

   static final String JDBC_DRIVER = "com.sap.db.jdbc.Driver"; 

   static final String DB_URL = "jdbc:sap://localhost:30015/?currentschema=NEO_06G741WZG8LLD26E40KHIZOPA";

 

 


Viewing all articles
Browse latest Browse all 3285

Trending Articles



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