ADO OpenSchema 方法

通过ADO和DAO在Access中创建和管理数据库表 本篇博客文章将带你深入了解如何在Microsoft Access中通过ADO和DAO对象创建和管理数据库表。内容涵盖了创建表、添加字段、定义字段数据类型、列出表和字段以及设置主键、索引和表关系的方法。通过具体实例和操作步骤,文章将指导你如何高效地运用这些技术来优化你的数据库操作。 阅读详情

ADO OpenSchema 方法


The OpenSchema method returns a Recordset object with schema information from the provider about the data source. For example, schema information can include the names of the tables, names of the columns in the tables, and the data type of each column. The Recordset will be opened as a read-only recordset.OpenSchema方法的作用是:返回带有数据源提供者Schema信息的Recordset对象。举例来说,schema信息可以包括表名称、表中的列名称以及每一列的数据类型。Recordset将以制度的方式打开。

Syntax 
语法

Set rs=objconn.OpenSchema(querytype,criteria,schemaid)

Parameter参数Description描述
querytype Required. A SchemaEnum value that represents the type of schema query to run 
必要参数。用来代表所运行的Schema查询语句类型的一个SchemaEnum值

Note: The OLEDB specification only require 3 of the SchemaEnum values to be supported. These are adSchemaTables, adSchemaColumns, and the adSchemaProviderTypes 
注意:在OLEDB规范中,只支持3个SchemaEnum值。他们分别是:adSchemaTables、adSchemaColumns和adSchemaProviderTypes

criteria Optional. An array of query constraints for each querytype option, as listed in SchemaEnum 
可选参数。一个查询数组,用于限制querytype选项,具体请见SchemaEnum
schemaid The GUID for a provider-schema query not defined by the OLE DB specification. Required if querytype is set to adSchemaProviderSpecific 
在OLE DB规范中并未定义provider-schema查询语句的GUID。如果querytype [查询类型]被设置为adSchemaProviderSpecific,那么必须设置该参数


SchemaEnum Values

Constant
常量
Value
值
Description
描述
Constraint Columns
限制列
adSchemaProviderSpecific -1 Used if the provider defines its own nonstandard schema queries
如果技术提供对象定义了本身的非标准Schema查询语句时使用该常量
Provider specific
adSchemaAsserts 0 Returns the assertions defined in the catalog 
返回在目录中定义的声明
CONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
adSchemaCatalogs 1 Returns the physical attributes associated with catalogs accessible from the DBMS 
返回与DBMS的目录及相关的物理属性
CATALOG_NAME
adSchemaCharacterSets 2 Returns the character sets defined in the catalog 
返回在目录中定义的字符设置
CHARACTER_SET_CATALOG
CHARACTER_SET_SCHEMA
CHARACTER_SET_NAME
adSchemaCollations 3 Returns the character collations defined in the catalog 
返回在目录中定义的字符校对
COLLATION_CATALOG
COLLATION_SCHEMA
COLLATION_NAME
adSchemaColumns 4 Returns the columns of tables defined in the catalog 
返回在目录中定义的表列
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
COLUMN_NAME
adSchemaCheckConstraints 5 Returns the check constraints defined in the catalog 
返回目录中定义检查限制
CONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
adSchemaConstraintColumnUsage 6 Returns the columns used by referential constraints, unique constraints, check constraints, and assertions, defined in the catalog 
返回目录中定义的通过指示限制、独立限制、检查限制和声明所使用的列
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
COLUMN_NAME
adSchemaConstraintTableUsage 7 Returns the tables that are used by referential constraints, unique constraints, check constraints, and assertions defined in the catalog 
返回目录中定义的通过指示限制、独立限制、检查限制和声明所使用的表
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaKeyColumnUsage 8 Returns the columns defined in the catalog that are constrained as keys 
返回目录中定义的列。该目录被限制为键[key]
CONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
COLUMN_NAME
AdSchemaReferentialConstraints 9 Returns the referential constraints defined in the catalog 
返回目录中定义的指示限制
CONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
adSchemaTableConstraints 10 Returns the table constraints defined in the catalog 
返回目录中定义的表限制
CONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
CONSTRAINT_TYPE
adSchemaColumnsDomainUsage 11 Returns the columns defined in the catalog that are dependent on a domain defined in the catalog 
返回目录中定义的列限制。该目录是由目录中定义的域名决定的
DOMAIN_CATALOG
DOMAIN_SCHEMA
DOMAIN_NAME
COLUMN_NAME
adSchemaIndexes 12 Returns the indexes defined in the catalog 
返回目录中定义的索引[Index]
TABLE_CATALOG
TABLE_SCHEMA
INDEX_NAME
TYPE
TABLE_NAME
adSchemaColumnPrivileges 13 Returns the privileges on columns of tables defined in the catalog 
返回目录中定义的表列特权
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
COLUMN_NAME
GRANTOR
GRANTEE
adSchemaTablePrivileges 14 Returns the privileges on tables defined in the catalog 
返回目录中定义的表特权
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
GRANTOR
GRANTEE
adSchemaUsagePrivileges 15 Returns the USAGE privileges on objects defined in the catalog 
返回目录中定义的对象用法权限
OBJECT_CATALOG
OBJECT_SCHEMA
OBJECT_NAME
OBJECT_TYPE
GRANTOR
GRANTEE
adSchemaProcedures 16 Returns the procedures defined in the catalog 
返回目录中定义的程序
PROCEDURE_CATALOG
PROCEDURE_SCHEMA
PROCEDURE_NAME
PROCEDURE_TYPE
adSchemaSchemata 17 Returns the schemas (database objects) 
返回schema(数据库对象)
CATALOG_NAME
SCHEMA_NAME
SCHEMA_OWNER
adSchemaSQLLanguages 18 Returns the conformance levels, options, and dialects supported by the SQL-implementation processing data defined in the catalog. 
返回目录中定义的SQL执行程序所支持的适应性级别和选项
None
adSchemaStatistics 19 Returns the statistics defined in the catalog 
返回母丁中定义的统计表
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaTables 20 Returns the tables defined in the catalog that are accessible 
返回目录中定义的表。该目录是可以访问的
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
TABLE_TYPE
adSchemaTranslations 21 Returns the character translations defined in the catalog that are accessible 
返回目录中定义的字符事务。该目录是可以访问的
TRANSLATION_CATALOG
TRANSLATION_SCHEMA
TRANSLATION_NAME
adSchemaProviderTypes 22 Returns the data types supported by the data provider 
返回data provider[数据提供者]支持的数据类型
DATA_TYPE
BEST_MATCH
adSchemaViews 23 Returns the views defined in the catalog that are accessible 
返回目录中定义的查看内容。该目录是可以访问的
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaViewColumnUsage 24 Returns the columns on which viewed tables, are dependent 
返回由可视表对象所决定的列
VIEW_CATALOG
VIEW_SCHEMA
VIEW_NAME
adSchemaViewTableUsage 25 Returns the tables on which viewed tables, are dependent 
返回由可视表对象所决定的表
VIEW_CATALOG
VIEW_SCHEMA
VIEW_NAME
adSchemaProcedureParameters 26 Returns info about the parameters and return codes of procedures 
返回参数信息以及程序代码
PROCEDURE_CATALOG
PROCEDURE_SCHEMA
PROCEDURE_NAME
PARAMETER_NAME
adSchemaForeignKeys 27 Returns the foreign key columns defined in the catalog 
返回在目录中定义的foreign键
PK_TABLE_CATALOG
PK_TABLE_SCHEMA
PK_TABLE_NAME
FK_TABLE_CATALOG
FK_TABLE_SCHEMA
FK_TABLE_NAME
adSchemaPrimaryKeys 28 Returns the primary key columns defined in the catalog 
返回在目录中定义的私钥
PK_TABLE_CATALOG
PK_TABLE_SCHEMA
PK_TABLE_NAME
adSchemaProcedureColumns 29 Returns info about the columns of rowsets returned by procedures 
返回通过程序返回的rowset列信息
PROCEDURE_CATALOG
PROCEDURE_SCHEMA
PROCEDURE_NAME
COLUMN_NAME
adSchemaDBInfoKeywords 30 Returns a list of provider-specific keywords 
返回技术提供者详细键的列表
None
adSchemaDBInfoLiterals 31 Returns a list of provider-specific literals used in text commands 
返回在文本命令中使用的提供者的详细文字列表
None
adSchemaCubes 32 Returns info about the available cubes in a schema 
返回Schema中可使用的三位数组信息
CATALOG_NAME
SCHEMA_NAME
CUBE_NAME
adSchemaDimensions 33 Returns info about the dimensions in a given cube 
返回一个位于给定三位数组内的维数信息
CATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_NAME
DIMENSION_UNIQUE_NAME
adSchemaHierarchies 34 Returns info about the hierarchies available in a dimension 
返回在一个维数内可使用的层次信息
CATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_NAME
HIERARCHY_UNIQUE_NAME
adSchemaLevels 35 Returns info about the levels available in a dimension 
返回在数组为数范围内可以使用的等级信息
CATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_UNIQUE_NAME
LEVEL_NAME
LEVEL_UNIQUE_NAME
adSchemaMeasures 36 Returns info about the available measures 
返回可以利用的方法相关的信息
CATALOG_NAME
SCHEMA_NAME
CUBE_NAME
MEASURE_NAME
MEASURE_UNIQUE_NAME
adSchemaProperties 37 Returns info about the available properties for each level of the dimension 
为不同级别数组维数返回可以使用的属性信息
CATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_UNIQUE_NAME
LEVEL_UNIQUE_NAME
MEMBER_UNIQUE_NAME
PROPERTY_TYPE
PROPERTY_NAME
adSchemaMembers 38 Returns info about the available members 
返回可使用的成员信息
CATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_UNIQUE_NAME
LEVEL_UNIQUE_NAME
LEVEL_NUMBER
MEMBER_NAME
MEMBER_UNIQUE_NAME
MEMBER_CAPTION
MEMBER_TYPE
TREE OPERATOR
adSchemaTrustees 39 For future use
为将来使用
None

Keil MDK安装NRF52832开发环境全攻略(附系统时间错误解决方案) 本文详细介绍了如何使用Keil MDK搭建NRF52832开发环境,包括基础软件安装、项目配置关键步骤以及常见问题解决方案。特别针对系统时间错误导致的编译失败问题提供了实用解决方法,帮助开发者快速上手NRF52832开发。 阅读详情

相关推荐

冈萨雷斯《数字图像处理》读书笔记

第1章 绪论 什么是数字图像处理 一副图像可以定义为一个二维函数f(x,y)f(x,y)f(x,y),x和y是平面空间坐标,在任何一对空间坐标(x,y)(x,y)(x,y)处的幅值fff称为图像在该点的强度或灰度。当x,y和灰度值f为有限的离散数值时,称该图像为数字图像 数字图像处理界定为其输入和输出都是图像的处理、从图像中提取特征的处理、各个目标的识别 三种典型的计算处理 低级处理:输入输出...

Gillian_z 1万+

ADO的OpenSchema

  Dim oConn,oRS,sConn  Const adUseClient = 3  Const adSchemaTables = 20  Set oConn = Server.CreateObject("ADODB.Connection")  sConn = "DBQ="+server.mappath("chinawuyishan.mdb")+";DRIVER={Microsoft

DotNetFirst的专栏 1402

FAGLB03余额显示异常排查与修复指南

本文针对SAP新总账中FAGLB03报表余额显示异常问题,提供了专业的排查与修复指南。文章深入剖析了数据不一致的核心原因,如FAGLFLEXT汇总表与凭证明细不同步、年度余额结转(FAGLGVTR)失败等,并详细介绍了使用FAGLF03进行精准诊断、通过SE38执行标准调整程序TFC_ADJUST_VZ进行修复的标准操作流程,帮助用户快速恢复数据一致性,确保财务报表的准确性。

weixin_29313423的博客 312

OpenSchema SchemaEnum

ConstantValueDescriptionConstraint ColumnsadSchemaAsserts0Returns the assertions defined in the catalog that are owned by a given user. (ASSERTIONS Rowset)CONSTRAINT_CATALOGCONSTRAINT_SCHEMACONSTRAINT

Aricc的专栏 1959

Andriod应用开发基础项目——记账本

本项目采用Java语言编写,是一款基于Android Studio开发的简易项目,本项目可以提高Java语言编写软件的能力,同时加深对开发软件Android studio有了更深层次的掌握,很适合初学者。在项目过程中,遇到了一些挑战和问题,但通过不断的努力和学习,最终取得了成功。未来,可以还可以继续优化App的功能和性能,增加更多实用的功能,提升用户体验。

eryasd的博客 3474

【fMRI实战】从fALFF/ReHo双样本t检验到GRF矫正:DPABI结果可视化与报告全流程

本文详细介绍了使用DPABI进行fMRI数据分析的全流程,包括fALFF/ReHo双样本t检验、GRF多重比较矫正、结果可视化与报告。重点讲解了DPABI Viewer的操作技巧、GRF参数设置要点、脑区定位方法以及结果提取与可视化技巧,帮助研究者高效完成fMRI数据分析与报告。

weixin_32612263的博客 436

VBA-判断数据表是否存在(openschema)

1.首先我们可以学习一下错误捕捉,当数据表不存在的时候,删除数据表就会出现错误,此时就会有错误记录,我们就可以利用本地窗口看到错误的信息 Sub 错误捕捉() Dim mydata As String Dim mytable As String Dim con As New ADODB.Connection mydata = ThisWorkbook.Path ...

oyq的博客 5044

GEE APP:时间序列影像批处理工具:按月筛选与智能导出解决方案出工具

本文介绍了一个基于Google Earth Engine(GEE)开发的智能时序影像处理工具,可高效处理遥感影像时间序列数据。该工具采用三栏式交互布局,包含控制面板、地图显示和缩略图预览区域。核心功能包括:1)灵活的时间筛选机制,支持年度范围选择和月份批量选择;2)智能影像筛选算法,基于云量、空间覆盖等条件自动选择最佳影像;3)交互式缩略图预览,支持点击加载完整影像;4)自动化批量导出系统,实现标准化命名和统一存储。工具可广泛应用于农业监测、城市扩张研究、生态环境评估等领域,显著提高遥感数据预处理效率,确保

此星光明博客 119

获取Access数据表的方法

获取数据表的方法: 方法一:直接用ado的OpenSchema()方法打开adSchemaTables,建立一个schema记录集 Const adSchemaTables = 20 adSchemaColumns = 4 dim Conn,db dim ConnStr db="temp.mdb" 'ACCESS数据库的文件名,请使用相对于网站根目录的的绝对路径 ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPat

旺财 1363

【ARFoundation自学04】AR Tracked Image 图像追踪识别与对应类的调用

1.添加组件 2.创建图像识别库 3.创建识别后追踪的物体(UI、模型等)

leoysq的博客 2565

揭秘AI人工智能中Stable Diffusion的模型微调技巧

Stable Diffusion作为一种强大的文本到图像生成模型,在艺术创作、设计、娱乐等多个领域展现出了巨大的应用潜力。然而,其默认的模型输出可能无法满足特定用户或特定场景的个性化需求。本文章的目的在于深入揭秘Stable Diffusion的模型微调技巧,让读者能够根据自己的需求对模型进行定制化调整,生成符合特定风格、主题或要求的图像。范围涵盖了从基础概念到实际操作,从理论原理到项目实战的全方位内容,旨在为读者提供一个系统且深入的学习指南。

大模型应用工坊 952

hbase获取表信息_Excel VBA+ADO+SQL入门教程023:OpenSchema获取表信息

点上方关注我们,每日1练,每天进步一点点1.我们在使用SQL语言对数据库数据进行查询之前,有时需要获取每张表的表名,甚至获取每张表每个字段的名称等;比如,当我们进行跨工作簿数据查询及汇总时,在不打开相关工作簿的情况下,如何快速遍历指定工作簿每个工作表的名称?——Connection对象的OpenSchema方法可以帮助我们解决此类问题;它可以从提供者获取数据库模式的信息,并返回一个只读...

weixin_31558841的博客 672

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

MSDN:OpenSchema 方法 (ADO)

从提供者获取数据库纲要信息。语法Set recordset = connection.OpenSchema (QueryType, Criteria, SchemaID)返回值返回包含纲要信息的 Recordset 对象。Recordset 将以只读、静态游标打开。参数QueryType   所要运行的纲要查询类型,可以为下列任意常量。Criteria   可选。每个

旺财 2481

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

如何在 Visual Basic 中使用 ADO OpenSchema 方法

概要本文介绍如何使用 ActiveX 数据对象 (ADO) Connection 对象的 OpenSchema 方法获取有关数据库或表的详细信息。 OpenSche...本文介绍如何使用 ActiveX 数据对象 (ADO) Connection 对象的 OpenSchema 方法获取有关数据库或表的详细信息。 OpenSchema 的语法是下面:设置记录集 = con

1962

ADO API 参考( ADO方法)之四

Open 方法 (ADO Connection)打开到数据源的连接。语法connection.Open ConnectionString, UserID, Password, Options参数ConnectionString   可选,字符串,包含连接信息。参阅 ConnectionString 属性可获得有效设置的详细信息。UserID   可选,字符串,包含建立连接时

wybm的专栏 2044

OpenSchema 方法

有关 OLE DB 数据类型的详细信息,请参阅“Microsoft OLE DB 程序员参考”的第十章和附录 A。每个模式查询有它支持的不同参数集。但是对于这些模式查询,提供者不需要支持上面列出的。方法返回与数据源有关的信息,例如关于服务器上的表以及表中的列等信息。OLE DB 规范没有定义用于提供者模式查询的 GUID。提供者不需要支持所有的 OLE DB 标准模式查询,只有。如果提供者定义未在上面列出的非标准模式查询,则常量。所要运行的模式查询类型,可以为下列任意常量。,则需要该参数,否则不使用它。

jiang_45的博客 822

查询用户所有信息后只需要两个字段的信息_Excel VBA+ADO+SQL入门教程023:OpenSchema获取表信息...

点上方关注我们,每日1练,每天进步一点点1.我们在使用SQL语言对数据库数据进行查询之前,有时需要获取每张表的表名,甚至获取每张表每个字段的名称等;比如,当我们进行跨工作簿数据查询及汇总时,在不打开相关工作簿的情况下,如何快速遍历指定工作簿每个工作表的名称?——Connection对象的OpenSchema方法可以帮助我们解决此类问题;它可以从提供者获取数据库模式的信息,并返回一个只读...

weixin_39958366的博客 483

vb获取数据库中所有表的名称

如何在 Visual Basic 中使用 ADO OpenSchema 方法 文章编号: 186246 - 查看本文应用于的产品 查看机器翻译免责声明 点击这里查看逐句中英文对照机器翻译 309488" _msthash="451464" _mstchunk="true">这篇文章的 Microsoft Visual Basic.NET 版本,请参阅309488 () http:

gyzsky的专栏 4712

ACCESS数据库轻松查看

 不知道为什么突然写了这么一个东东,呵呵,也许以后用得着! on error resume nextdim tbstrset rstSchema=conn.OpenSchema(20)Do while Not rstSchema.eof If rstSchema.fields(3)="TABLE" then  tbstr = tbstr&""&rstSchema("Table_Name"

dh20156风之石的专栏 1106

如何通过ADO获得数据库的字段名,字段类型

--------------------------------------------------------------- recordset.fields(index).name 字段名 --------------------------------------------------------------- 名: recordset.fields(index).nam...

weixin_30565327的博客 629

使用OpenSchema方法生成统计信息

在上周的技巧中,我向您展示了如何使用DBEngine(DAO)的ISAMStats方法返回有关查询执行的重要统计信息,例如:磁盘读写,缓存读写以及放置和释放的锁。 按照承诺,在本周的技巧中,我将演示如何使用连接对象的OpenSchema方法在ADO上下文中完成并行功能。 我们通过向其提供一个称为GUID的魔术数字(而不是表示特定模式的传统常量值)来向OpenSchema方法指示我们想要一组特定...

IT与开发人员的地盘 328

在VB.NET中用ADO(不是ADO.NET)获取数据库中的所有非系统表名

<!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--><script type="text/javascript"

zgqtxwd的专栏 678

MSSQL:ADO openschema提取数据库结构

1、提取的数据库结构 Con.ConnectionString = "Driver={sql server};server=192.168.1.112;uid=sa;pwd=;database=db_2008" Con.Open Set Rs = Con.OpenSchema(20) Set MS1.DataSource = Rs

EFU0387的专栏 737

用ADO怎样得到表的个数和每个表的名字?

 用OpenSchema   方法     语法         Set   recordset   =   connection.OpenSchema   (QueryType,   Criteria,   SchemaID)         返回值         返回包含模式信息的   Recordset   对象。Recordset   将以只读、静态游标打开。         参数  

我的编程之旅 1219

遍历数据库的表结构

 ----------------------------------------------------------------- Access -----------------------------------------------------------------//Access中的系统表MSysobjects存储属性的字段是二进制格式,不能直接分析//可以采用AD

YesOrNo2003的专栏 1239

如何通过ADO,获取一个数据库文件里面所有的表?

使用ADO来获取一个文件的思路是,通过Connection 对象的OpenSchema的方法,获取的一个REORDSET对象.     这个RECORDSET对象里包含有数据库文件里面所有表的名称和类型.     欲想了解这个RECORDESET对象里面的字段属性,可以使用VB的监视器在相应代码处中断,查看信息.下面给出例子和注释Public Sub OpenSchemaX() Dim

polarmirror的专栏 1682
上一篇: VS2010 C++ 操作Excel表格的编程实现
下一篇: svn在linux下的使用(svn命令行)
国境之南Fantasy
博客等级 码龄17年 572粉丝 12原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值