Hi Prakash,

getColumnType - Returns the data type as a java.sql.Types value
getColumnTypeName - Returns the value as a database specific column type

For ex. when u have Oracle and you have a field called name which is defined as
varchar2(10) in Oracle

getColumnType - Returns String
getColumnTypeName - Returns varchar2

hope this helps

Giri








Prakash Satyan <[EMAIL PROTECTED]> on 07/04/2000 03:30:08 PM

Please respond to "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>








 To:      [EMAIL PROTECTED]

 cc:      (bcc: Muthukrishnan Giridhar/E-Commerce/DSQ
          Software Limited/IN)



 Subject: JDBC Metadata methods








Hi All,

      Can anyone clarify the difference between the JDBC metadata methods
      getColumnType() and getColumnTypeName(). I am designing generalized
      class libraries for all JDBC related manipulations for which proper
      statement need to be constructed depending on the type of the column
      fetched from the Database.


Thanks.
      _____________________________________________________________

      Visit http://www.PalmGreetings.com The first & only Mobile greeting
      site.
      * You can send & receive e-cards using your Palm Pilot
      * View animated cards on your Palm
      * Draw your very own cards

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to