<%@page import="java.sql.*,java.util.*"%>
<%
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/test";
Connection con=DriverManager.getConnection( "jdbc:mysql://localhost:3306/test","root","root");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("Select * from client where id=1");
while(rs.next()){
java.sql.Date dd = rs.getDate(6);
out.println(dd);
}
%>
|