/// <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'

相关文章:

  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-01-14
  • 2021-10-27
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-07-16
  • 2021-06-25
相关资源
相似解决方案