• Post Reply Bookmark Topic Watch Topic
  • New Topic

retrive table name in jsp

 
mkabdul kadermk
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


how do you retrieve all table names form mysql database in jsp

explain it.

please reply me..

thank you.
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

You will need to query the database, information on doing this can be found in the MySQL documentation here: MySQL documentation

Hope that helps.

Sean
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A better -because DB-independent- approach would be to use the Connection.getMetaData() method.

I'll move this to the JDBC forum, as it has nothing to do with JSP.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!