my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes SQL Data Types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "SQL Data Types" Watch "SQL Data Types" New topic

SQL Data Types

Abed Rabie
Ranch Hand

Joined: Jun 24, 2003
Posts: 74
Dear all,

How r u all?

In the pacjage java.sql. There is a class called Types which through it you can check the type of the datatype for certain cloumn in the ResultSet.

But i don't find those datatpyes(nchar,ntext,nvarchar).

So please advice which datatypes i can use instead.

Best regards


Abed Rabie
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I would guess: String, String and - hmmm... difficult. String?
I agree. Here's the link:
subject: SQL Data Types
It's not a secret anymore!