This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes UNKNOWN type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "UNKNOWN type" Watch "UNKNOWN type" New topic
Author

UNKNOWN type

jrookie
Greenhorn

Joined: Aug 20, 2002
Posts: 17
hello
i have mysql table with type "YEAR"
and i getColumnTypeName for it
it's return "UNKNOWN"
sql.Types don't support this type
how i can use it ???
thanks
user guest
Greenhorn

Joined: Oct 09, 2002
Posts: 1
do you mean support in switch statement like that
switch (columnTypes)
{
VARCHAR:ResultSet.getString();
or how you want support YEAR type ???
Michael Matola
whippersnapper
Ranch Hand

Joined: Mar 25, 2001
Posts: 1746
    
    2
user guest,
Take a look again at the
JavaRanch Naming Policy. "User guest" is obviously fictiously. If you've got to use a fictious name, don't choose an obviously fictitious one. Otherwise, your account will be closed.
Change your display namehere.
 
Don't get me started about those stupid light bulbs.
 
subject: UNKNOWN type