79554616

Date: 2025-04-04 06:43:14
Score: 1
Natty:
Report link

This is perhaps not exactly what the OP was looking for, but I came across this post when searching for a way to temporarily select specified values on-the-fly as table data result in SQL.

See: https://stackoverflow.com/a/7285095/4993856 by pm..

Basically:

SELECT *
FROM (
    VALUES ('a',1), ('b',2), ('c',3) 
) AS X("Column a","Column b")

produces:

Column a Column b
a 1
b 2
c 3
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jonno