易截截图软件、单文件、免安装、纯绿色、仅160KB

获取Access用户定义的表名和各表的字段名

 public   static  DataTable GetSchemaTable(string connectionString)  //获取Access所有的表名;
        {
            using (OleDbConnection connection = new
                       OleDbConnection(connectionString))
            {
                connection.Open();
                DataTable schemaTable = connection.GetOleDbSchemaTable(
                    OleDbSchemaGuid.Tables,
                    new object[] { null, null, null, "TABLE" });
                return schemaTable;
            }
        }
 private string[] GetTabelName(string conn)  //获取Access文件中所有表名,放在数组里面
        {
            DataTable dt = GetSchemaTable(conn);
            int n = dt.Rows.Count;
            string[] strTable = new string[n];
            int m = dt.Columns.IndexOf("TABLE_NAME");
            for (int i = 0; i < n; i++)
        


相关文档:

【转】ACCESS中如何在SQL语句的WHERE条件中加日期条件

转自
http://topic.csdn.net/t/20050110/09/3711952.html
access中时间要用#,不是双引号  
  select   *   from   kc   where   rq   <   #2000-01-01#   and   rq>#2002-01-01#  
  不要用between,它的效率泰低  
使用# 而不是 ......

lamp Error403 Forbidden access解决策略

今天花了2个小时间,在网上发现一大堆的解答,但都不凑效,自己摸索,终于搞定这个很恶心的问题。
第一步:进入/var目录 执行命令 chmod 755 ./www/ -R ,也就是把WEB目录下的文件的访问权限适当打开
第二步:sudo cd /etc/apache2/sites-enabled/,发现里面有几个目录,比如我的有 000-default,输入sudo gedit /etc/apach ......

Sql Server 和 Access 操作数据库结构Sql语句

新建表:
create table [表名]
(
[自动编号字段] int IDENTITY (1,1) PRIMARY KEY ,
[字段1] nVarChar(50) default '默认值' null ,
[字段2] ntext null ,
[字段3] datetime,
[字段4] money null ,
[字段5] int default 0,
[字段6] Decimal (12,4) default 0,
[字段7] image null ,
)
删除表:
Drop table [表 ......

SQL Access创建表

一、创建一张空表:
Sql="Create TABLE [表名]"
二、创建一张有字段的表:
Sql="Create TABLE [表名]([字段名1] MEMO NOT NULL, [字段名2] MEMO, [字段名3] COUNTER NOT NULL, [字段名4] DATETIME, [字段名5] TEXT(200), [字段名6] TEXT(200))
字段类型:
2 : "SmallInt", // 整型
3 : "Int", ......

关于update语句在sqlserver和Access中的对比

sqlserver:update Table_A set Table_A.col1 = (select Table_B.col1 from Table_B where Table_A.col2 = Table_B.col2)
Access: UPDATE Table_ A, Table_B SET Table_ A.字段2 = Table_ B.字段2
WHERE Table_ A.编号=Table_ A.编号;
自己记下,提醒自己 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号