有关PreparedStatement方法的问题?
胖嘟嘟 2001-09-25 03:07:48 <%@ page import="java.slq.*"%>
Connection conn=null;
conn=DriverManager.getConnection("jdbc:weblogic:pool:GhopPool");
String psql="select h_reserve.h_reserve_id from h_reserve,h_reserve_detail where h_reserve.h_member_card_id='?' and h_reserve.h_reserve_status=3 and indate<'"+sy+"-"+sm+"-1' ";
PreparedStatement pst =conn.preparedStatement(psql);
.........
为什么会报
E:\opt\weblogic\myserver\classfiles\examples\jsp\_private\_hotel\_yd_95_stat\_xintotal_95_jy.java:146: Method preparedStatement(java.lang.String) not found in interface java.sql.Connection.
probably occurred due to an error in /private/hotel/yd_stat/xintotal_jy.jsp line 69:
PreparedStatement pst =conn.preparedStatement(psql);
错