<%@ page language="java" import="java.sql.*" pageEncoding="GBK"%>
<html>
<head>
<title>JDBC</title>
</head>
<body>
<%!
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection conn = null;
%>
<%
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydata","root", "root");
pstmt = conn.prepareStatement("insert into student(Name,Age,Tel,Addres......
阅读全文