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)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 炉霍县| 济南市| 高台县| 营山县| 普定县| 中牟县| 临城县| 横山县| 双鸭山市| 西乌| 安泽县| 济阳县| 新野县| 延川县| 监利县| 盐山县| 新乡市| 雷山县| 双峰县| 炎陵县| 旌德县| 修水县| 唐山市| 简阳市| 光泽县| 中宁县| 博兴县| 盘锦市| 米泉市| 青阳县| 连平县| 浑源县| 宜章县| 建湖县| 梁河县| 阿荣旗| 六安市| 孝昌县| 青川县| 巴中市| 尖扎县|