WEB开发网
开发学院数据库Access 通过查询返回数据库对象的名称 阅读

通过查询返回数据库对象的名称

 2008-12-26 00:00:00 来源:WEB开发网   
核心提示:使用下列SQL语句来获取你想要的查询:SELECTMSysObjects.NameFROMMsysObjectsWHERE(Left$([Name],1)<>"~")AND(MSysObjects.Type)=5ORDERBYMSysObjects.Name;窗体:SELECTMSysO

使用下列SQL语句来获取你想要的

查询:

SELECTMSysObjects.NameFROMMsysObjectsWHERE(Left$([Name],1)<>"~")AND(MSysObjects.Type)=5ORDERBYMSysObjects.Name;

窗体:

SELECTMSysObjects.NameFROMMsysObjectsWHERE(Left$([Name],1)<>"~")AND(MSysObjects.Type)=-32768ORDERBYMSysObjects.Name;

表:

SELECTMSysObjects.NameFROMMsysObjectsWHERE(Left$([Name],1)<>"~")AND(Left$([Name],4)<>"Msys")AND(MSysObjects.Type)=1ORDERBYMSysObjects.Name;

报表:

SELECTMSysObjects.NameFROMMsysObjectsWHERE(Left$([Name],1)<>"~")AND(MSysObjects.Type)=-32764ORDERBYMSysObjects.Name;

模块:

SELECTMSysObjects.NameFROMMsysObjectsWHERE(Left$([Name],1)<>"~")AND(MSysObjects.Type)=-32761ORDERBYMSysObjects.Name;

宏:

SELECTMSysObjects.NameFROMMsysObjectsWHERE(Left$([Name],1)<>"~")AND(MSysObjects.Type)=-32766ORDERBYMSysObjects.Name;

Tags:通过 查询 返回

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接