zoukankan      html  css  js  c++  java
  • 取得库文件内的表名

            /// <summary>
            
    /// 取得库文件内的表名
            
    /// </summary>
            
    /// <returns></returns>

    //Access:
            private ArrayList GetMdbTableName()
            {
                ArrayList al 
    = new ArrayList();
                DataTable dataTableschema 
    = this.mconn1.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables, 
                    
    new object[]{nullnullnull"TABLE"});
                
    foreach(DataRow dr in dataTableschema.Rows)
                    al.Add(dr[
    "Table_Name"].ToString());
                
    return al;
            }


    //oracle:
    select table_name from user_tables


    //sql server:
    select *from sysobjects where type='U'
  • 相关阅读:
    S1 : 函数
    S1 :数组迭代方法
    S1 : 传递参数
    S1:new操作符
    S1:函数上下文
    S1:对象与JSON
    S1:运算符
    S1:变量
    代码规范的读后自己的感悟
    第三周学习总结
  • 原文地址:https://www.cnblogs.com/wjhx/p/470774.html
Copyright © 2011-2022 走看看