Connection con = null;
Statement sm = null;
DisplaystyleextDto displaystyleextDto = new DisplaystyleextDto();
System.out.println(
"displaystyleextFindByStyleid=======================");
DataSource dataSource = null;
String sConnStr = "jdbc:oracle:thin:@sea:1521:sea"; try {
Class.forName("oracle.jdbc.driver.OracleDriver"); con = DriverManager.getConnection(sConnStr, "sea", "sea");
String strSQL = "select * from displaystyleext where styleid = " +
22;
System.out.println(strSQL);
sm = con.createStatement();
ResultSet rsnc = sm.executeQuery(strSQL);
while (rsnc.next()) {
CLOB cb = (CLOB) rsnc.getClob(1);
BufferedReader br = new BufferedReader(cb.getCharacterStream()); String s = br.readLine();
String content = null;
while (s != null) {
content += s;
s = br.readLine();
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
Statement sm = null;
DisplaystyleextDto displaystyleextDto = new DisplaystyleextDto();
System.out.println(
"displaystyleextFindByStyleid=======================");
DataSource dataSource = null;
String sConnStr = "jdbc:oracle:thin:@sea:1521:sea"; try {
Class.forName("oracle.jdbc.driver.OracleDriver"); con = DriverManager.getConnection(sConnStr, "sea", "sea");
String strSQL = "select * from displaystyleext where styleid = " +
22;
System.out.println(strSQL);
sm = con.createStatement();
ResultSet rsnc = sm.executeQuery(strSQL);
while (rsnc.next()) {
CLOB cb = (CLOB) rsnc.getClob(1);
BufferedReader br = new BufferedReader(cb.getCharacterStream()); String s = br.readLine();
String content = null;
while (s != null) {
content += s;
s = br.readLine();
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货