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


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


          網站導航:
           
          主站蜘蛛池模板: 尤溪县| 祁门县| 元江| 大悟县| 牟定县| 沾化县| 维西| 新民市| 科技| 敦化市| 丰都县| 昌江| 木兰县| 商丘市| 罗定市| 阿瓦提县| 梨树县| 宿松县| 贡山| 米林县| 上犹县| 鄂托克前旗| 山东省| 敖汉旗| 广河县| 徐闻县| 武冈市| 晋中市| 晴隆县| 朔州市| 高州市| 达日县| 西峡县| 尼玛县| 乌拉特后旗| 平潭县| 项城市| 兴义市| 乃东县| 丁青县| 大竹县|