The following is the syntax of SQL:
SELECT * FROM (VALUES ('p','q'),('x','y')) AS TableLiteral(Col1, Col2)
and returns the table:
| Col1 | Col2 ---------------- 1 | p | q 2 | x | y
This syntax can also be used in CTE, etc.
Is there a name for this? I call them TableLiterals by analogy with string literals and regular expression literals.
Is there a term that will be widely recognized.
terminology sql-server tsql
Brondahl
source share