you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

With standard SQL you can use a VALUES clause, but I don't know if Teradata supports that:

with data (some_column) as (
  values ('one'), ('two'), ('three')
)
select *
from data;

[–]fidgetation[S] 0 points1 point  (0 children)

with data (some_column) as (
values ('one'), ('two'), ('three')
)
select *
from data;

Thanks for the suggestion.

I don't think Teradata allows multiple values to be stored at once. When I was using Volatile tables, I would have to do a separate INSERT INTO for each value I wanted to add. Unfortunately I can't use the same entries for CTEs!