JDBC数据库学习中遇到的problems(一)

来源:互联网 发布:软件结构图 工具 编辑:程序博客网 时间:2024/04/30 01:44

1  String tableName = HttpServletRequest.getParameter("tableName");

其中的参数tableName,是在客户端*.html编写过程中声明的变量还是已经在数据库中确定的参数呢?在编写服务器端Servlet的时候,在写这句话的时候,getParameter("tableName");参数tableName是怎么确定的呢?

2  CallableStatement 用于SQL语句的存储过程。但是,好多参数的方法是怎样的呢!?

    *存储过程中,类型为OUT何IN的数据究竟是什么样的类型呢?

    * CallableStatement cstm=conn.prepareCall("call p_changesal(?,?)");

    里边的字符串参数应该是有什么规律吗~~?

     cstm.registerOutParameter(2,java.sql.Types.INTEGER);//how to explain it ?

     cstm.setInt(1,6728);

     cstm.executeUpdate();

     int sal=cstm.getInt(2); // how to explain

3   在web.xml里配置context-param怎么会出现404错误呢?

4   在*.html中action="list?cond=all"  --------------------------------------------           String condition=HttpServletRequest.getParameter("cond");

     说这是一个从客户端传递参数的过程,那问号前边的字符是不是应该有什么规律呢?

     这个问号起到一个什么样的作用呢~~?为什么参数是?后边的字符呢~?