jjklm

          執行存儲過程

          <Code Name="SMS_DocumentType" Description="文檔類型">
          ?<Table>SMS_documentType</Table>
          ?<NameField>Name</NameField>
          ?<ValueField>DocumentTypeID</ValueField>
          ?<PYField>DocumentTypeID</PYField>
          ?<DataModel>SMS_DocumentType</DataModel>
          ?<DataFilter>true</DataFilter>
          ?<ParentField BaseValue="0">parentid</ParentField>
          ?<LeafField Value="1">isleaf</LeafField>
          ?<Type>parentSon</Type>
          </Code>


          /**
          ???? * 執行存儲過程
          ???? * @param sql
          ???? * @return
          ???? * @throws SQLException
          ???? */
          ??? public ResultSet queryProcedure(String procedure) throws SQLException {
          ??????? con = super.getConnection();
          ??????? CallableStatement cstmt = null;
          ??????? String strSql = " { call " + procedure + " } ";
          ??????? cstmt = con.prepareCall(strSql);
          ??????? rs = cstmt.executeQuery();
          ??????? return rs;
          ??? }

          posted on 2006-09-13 17:11 天涯孤客 閱讀(52) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 延吉市| 阜平县| 晋城| 灵宝市| 武夷山市| 北京市| 安福县| 航空| 哈尔滨市| 县级市| 嘉义县| 邢台县| 新巴尔虎右旗| 南丹县| 略阳县| 洛隆县| 社会| 翼城县| 客服| 白银市| 元朗区| 泾阳县| 新郑市| 临洮县| 高州市| 通河县| 工布江达县| 湘潭市| 江源县| 洛浦县| 天长市| 吴旗县| 宜黄县| 织金县| 运城市| 赣榆县| 旌德县| 武城县| 丹棱县| 伽师县| 汉阴县|