zoukankan      html  css  js  c++  java
  • 【Vegas原创】Procedure经典用法~(需配合DBAccess类)

     void bind()  
            {
                 
                
    string d = "";
                
    string p = "%";
                
    string strText = "";
                
    //绑定table1
                for (int j = 1; j <= 4; j++)
                {
                    
    for (int i = 3; i >= 1; i--)
                    {
                        
    if (j == 1) d = "D000";
                        
    else if (j == 2) d = "M000";
                        
    else if (j == 3) d = "P000";
                        
    else if (j == 4) d = "T000";
                
    try
                        {
                            
    //连接数据库,并插入数据
                            SqlParameter[] sqlParam = new SqlParameter[2];

                            sqlParam[
    0= new SqlParameter("@i", SqlDbType.Int, 20, ParameterDirection.Input, false00"@i", DataRowVersion.Default, i);
                            sqlParam[
    1= new SqlParameter("@j", SqlDbType.NVarChar, 20, ParameterDirection.Input, false00"@j", DataRowVersion.Default, d);


                            DataSet ds 
    = db.GetDataSet("pms_potential", sqlParam);
                       
                            strText 
    = ds.Tables[0].Rows[0][0].ToString() + "%";
                        }
                        
    catch
                        {
                            strText 
    = "ERROR";
                        }
                       
                                        }
    }

                }

                
    //绑定table2

            }
  • 相关阅读:
    Angular笔记
    Angular数据双向绑定机制
    块级元素垂直居中
    Linux文件系统硬/软连接
    Javascript 操作select控件大全(新增、修改、删除、选中、清空、判断存在等)
    Js获取当前日期时间及其它操作
    escape()、encodeURI()、encodeURIComponent()区别详解
    for (var i in obj/array){}
    setInterval中传递参数
    PHOTOSHOP常用快捷键大全
  • 原文地址:https://www.cnblogs.com/amadeuslee/p/3744630.html
Copyright © 2011-2022 走看看