oracle大字段处理方式–解决长度不够

  • Post author:
  • Post category:其他


<%@ page contentType=”text/html;charset=gbk” %>

<%@ page import=”java.sql.Connection” %>

<%@ page import=”java.sql.DriverManager” %>

<%@ page import=”java.sql.Statement” %>

<%@ page import=”java.sql.ResultSet” %>

<%@ page import=”java.io.Writer” %>

<%

//数据包准备

try {


Class.forName(“oracle.jdbc.driver.OracleDriver”);

}

catch (java.lang.ClassNotFoundException e) {


System.err.print(e);

}

//参数定义

String url = “jdbc:oracle:thin:@192.168.9.96:1521:picc”;

String user = “eccc”;

String password = “eccc”;

String action = request.getParameter(“action”);

int req;//SQL执行判断参数

if (action == null) {


out.println(“<script language=/”javascript/”>alert(/”非法链接…/”);</script>”);

out.println(” <script language=’javascript’>”);

out.println(“location=’./addnew.jsp’; </script>”);

}

if (action.equals(“0211”)) {//判断是否合法请求


String info_id = request.getParameter(“info_id”);

String info_title &



版权声明:本文为l9332019原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。