Answers for "sql select result into table variable"

SQL
0

select into table variable

DECLARE @userData TABLE(
    name varchar(30) NOT NULL,
    oldlocation varchar(30) NOT NULL
);

INSERT INTO @userData (name, oldlocation)
SELECT name, location FROM myTable
INNER JOIN otherTable ON ...
WHERE age > 30;
Posted by: Guest on July-29-2020

Code answers related to "sql select result into table variable"

Code answers related to "SQL"

Browse Popular Code Answers by Language