1

我需要在我们的计费系统中添加几行代码,而我对这个调用的语法了解得不够多。有人能告诉我这个查询第一行中的零是什么意思吗?

  strSqlStmt = strSqlStmt & "SELECT Trim(users.PILastName & ' ' & users.PIFirstName), 0, 0, 0, 0, Count(plab.billing), 0, 0, 0 " 
  strSqlStmt = strSqlStmt & "FROM plab, pform, users, userinfo "
  strSqlStmt = strSqlStmt & "WHERE userinfo.PI=users.PI "
  strSqlStmt = strSqlStmt & " AND UCase(users.location) ='S' "
  strSqlStmt = strSqlStmt & " AND plab.sampleid=pform.sampleid " 
  strSqlStmt = strSqlStmt & " AND plab.email=userinfo.email " 
  strSqlStmt = strSqlStmt & " AND plab.finisheddate Between " & dtmRange & " "
  strSqlStmt = strSqlStmt & " AND plab.finished=True "
  strSqlStmt = strSqlStmt & " AND plab.billing = 1 "
  strSqlStmt = strSqlStmt & "GROUP BY Trim(users.PILastName & ' ' & users.PIFirstName) " 
4

1 回答 1

3

它只是在语句0指定的位置(列)中返回的静态(常量)值SELECT

这是一个SQLFiddle示例

于 2013-05-03T17:34:11.133 回答