String strInsertSql = "Insert into table sets(x,y) values(?,'123')"; PreparedStatement pstmt = con.prepareStatement(strInsertSql); Object rspTelegram = new String(STR_TELE_01); pstmt.setObject(1, rspTelegram); pstmt.executeUpdate(); pstmt.close();