NLS_DATE_FORMAT with JDBC
问题 I tried to set NLS_DATE_FORMAT inside jdbc, it didn't seem to have any effect. My code : //... Connection conn = ods.getConnection(); Statement stat = conn.createStatement(); stat.execute("alter session set NLS_DATE_FORMAT='YYYY-DD-MM'"); ResultSet rs = stat.executeQuery("select date_column from test_table"); System.out.println(rs.getString(1)); // *** new format not effective here *** //... After some reading. I understand that NLS_DATE_FORMAT is hard coded in JDBC Drivers. is this correct ?