以下SQL查询有何功能?

时间:2017-11-21 19:33:13

标签: sql access-vba

绘图记录了我工作的公司使用的是MS Access VBA。原始代码是由其他人在15年前编写的,我们现在遇到了报告功能错误,我们无法找到解决方案。

我遇到问题的查询如下:

var parent = document.getElementById("parent");
document.getElementById("output").innerHTML = parent.outerHtml;

有人知道符号Select Case Me.frameBaseType Case 1 'All drawings strFROM = "FROM (Company RIGHT JOIN Drawings ON Company.ID = Drawings.Company) LEFT JOIN Revisions ON Drawings.ID = Revisions.DwgID " Case 2 'Most recent revision strFROM = "FROM Company RIGHT JOIN ((Drawings INNER JOIN [For Report - Group Revision] ON Drawings.ID = " strFROM = strFROM & "[For Report - Group Revision].CbnDwgID) INNER JOIN Revisions ON (Drawings.ID = Revisions.DwgID) AND " strFROM = strFROM & "([For Report - Group Revision].RecentRevision = Revisions.ESIRevision)" strFROM = strFROM & " AND ([For Report - Group Revision].RevDate = Revisions.RevDate)" strFROM = strFROM & ") ON Company.ID = Drawings.Company " Case 3 'Due or late in routing strFROM = "FROM (Company RIGHT JOIN Drawings ON Company.ID = Drawings.Company) LEFT JOIN Revisions ON Drawings.ID = Revisions.DwgID " strWHERElate = "WHERE (((Revisions.Due)=1 Or (Revisions.Due)=2)) " strWHERE = strWHERElate Case 4 'Due or late from Vendor strFROM = "FROM (Company RIGHT JOIN Drawings ON Company.ID = Drawings.Company) LEFT JOIN Revisions ON Drawings.ID = Revisions.DwgID " strWHERElate = "WHERE (((Revisions.Due)=3 Or (Revisions.Due)=4)) " strWHERE = strWHERElate End Select 在SQL查询中的含义吗?

3 个答案:

答案 0 :(得分:0)

这是一个包含空格和/或非字母数字字符等的表名或查询名。括号仅用于包围名称不佳的(我的意见)对象。

答案 1 :(得分:0)

方括号用于引用实体名称。标准SQL使用"

在此上下文中,位于句点左侧的[For Report - Group Revision]指的是表格或类似表格的对象,例如视图,报表或其他数据源。

答案 2 :(得分:0)

在内部连接到表或视图之后,它是数据库中的表或视图(对象)的名称:

Drawings INNER JOIN [For Report - Group Revision]