• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrive Data Base names from Table Space

 
raktim banerjee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir!

I am trying to show all the Data Base names in a particule user's account. Is it possible to retrive Table Space information? If possible, then please help me out. I am using MYSQL and Servlet.
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Raktim,

You can use con.getMetaData( ). It returns Database metadata.
[con is the connection obj.].

Thanks and Regards
Souvik
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raktim,

Please refer to the below code:

 
raktim banerjee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not want the names of the tables in a particular Database.

I want to see all the Database names under a particular user name.
 
raktim banerjee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic