Simulate a table with multiple rows just with SELECT statement
问题 If I can do the following select statement to create a table with one value SELECT 'myname' AS 'Name' this will return a table with column = Name and one value = myname how can I work around this to return one column with multiple values from just the select statement I don't want to do this : DECLARE @tmp TABLE (Name varchar(50)) INSERT INTO @tmp (Name) VALUES ('myname1'),('myname2') SELECT * FROM @tmp Just from a single SELECT statement if possible 回答1: If you're wanting to simulate a table