Answers for "select into a 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 "select into a variable"

Code answers related to "SQL"

Browse Popular Code Answers by Language