• Post Reply Bookmark Topic Watch Topic
  • New Topic

jdbc problem

 
rahul soni
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys
I have a problem!
how can i know numbers of colums in a database(database like oracle,mysql,mse...) table?

I.In sql prompte

II.By java+jdbc at the frient end.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With JDBC you can use java.sql.DatabaseMetaData.getColumns(). That can be obtained through Connection.getMetaData().
 
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!