I would like to know what's going on when, I'm trying to fetch data from ORACLE database. The datatype of the column is VARCHAR2(40 BYTE) NOT NULL ENABLE.
From @Thoma advise in comment section I've changed the pics into text.
In SQL DEVELOPPER, I have the following result
SELECT ZONE_DESC FROM IC_RATE_ZONES;
"ZONE_DESC"
VIRGIN ISLANDS UK
VIRGIN ISLANDS US
WALLIS AND FUTUNA IS
YEMEN
ZAMBIA
ZAMBIA MOBILE
And when I've tried to fetch those data in JAVA code:
try{
con = conn.getOracle();
stm = con.createStatement();
Rs = stm.executeQuery("select ZONE_DESC FROM IC_RATE_ZONES");
while(Rs.next()){
System.out.println(Rs.getString("ZONE_DESC"));
}
} catch(Exception e){
e.printStackTrace();
}
I get a blank result in my console output.