JSP database operation routine - stored procedure - JDBC-ODBC - SQL Server - 1.1 version is taken from "ChinaAasp" (text / He Zhiqiang)
<% - Author: Raymond [hhzqq@21cn.com] Date: 2000-08-04 2000-08-16 Version: 1.1 Function: JSP database operation routines - Stored Procedures - JDBC-ODBC - SQL ServerSQL Server stored procedure As follows: create procedure sp_jsptest @Yourname Varchar (50), @MYNAME VARCHAR (50) Output As SELECT "Hello," @ Yourname ", I am very happy to meet you, ^ _ ^" set @MYNAME = "He Zhiqiang" Return 1 Go -%> <% @ page contentType = "text / html; charset = GB2312"%> <% // variable declaration java.lang.string strname; // Name // get the user input data strname = request.getParameter "name"); if (strname == null) {// user does not enter Name%>
JSP database operation routine - stored procedure - JDBC-ODBC - SQL Server title> head>