You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQL Server table variables not supported | SELECT columnName FROM @table #911
DECLARE @tableName TABLE (id INT);
INSERT INTO @tableName VALUES (1);
UPDATE @tableName SET id=2;
UPDATE t SET id=3 FROM @tableName AS t;
SELECT * FROM @tableName;
DELETE FROM @tableName;
DELETE t FROM @tableName as t;
-- not valid:
-- SELECT @tableName.* FROM @tableName;
-- SELECT 1 INTO @tableName;
-- TRUNCATE TABLE @tableName;
-- CREATE INDEX idx ON @tableName(id);
Activity
cdandoy commentedon Dec 21, 2019
Here are a couple of use cases: