这个 oracle 查询中的 {0} 是什么意思“select ... from STAFFSV {0} order by SEQID”?

时间:2021-04-23 15:36:58

标签: sql sql-server oracle

我必须将此查询转换为 SQL Server:

Select SEQID AS ID, USERNAME AS USERID, FIRSTNAME + ' ' + LASTNAME AS NAME, CASE CONSULTANT WHEN 1 THEN 'Y' ELSE 'N' END CONS, CASE ASSIGN WHEN 1 THEN 'Y' ELSE 'N' END AS ASSIGN, CASE PRINT WHEN 1 THEN 'Y' ELSE 'N' END AS PRINT, CASE SHIPPING WHEN 1 THEN 'Y' ELSE 'N' END AS SHIP, ACTIVE from STAFFSV {0} order by SEQID

但我不明白 {0} 在 SQL Server 中会被转换成什么

1 个答案:

答案 0 :(得分:4)

这不是完整的查询。 {0} 是查询的另一部分(可能是 WHERE 子句)的占位符,将由应用程序填充