Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT * FROM myTable WHERE 'myValue' IN (myFieldName1, myFieldName2, myFieldName3)
SELECT * FROM ADDRESS WHERE '123 Main Street' IN (ADDRESS1, ADDRESS2, ADDRESS3)
select *
from ( select 'test1','123' as test
union select 'test2','234' as test
union select 'test3','345' as test
union select 'test4','456' as test
) as t1;
test1,123
test2,234
test3,345
test4,456
My guess is that he meant defining some data in the query itself, basically selecting from a temp table.
Something like this:
Code:select * from ( select 'test1','123' as test union select 'test2','234' as test union select 'test3','345' as test union select 'test4','456' as test ) as t1;
Output:
Code:test1,123 test2,234 test3,345 test4,456
select 'Value1' as col1 into #temp
insert into #temp values( 'Value2')
insert into #temp values( 'Value3')
insert into #temp values( 'Value4')
insert into #temp values( 'Value5')
insert into #temp values( 'Value6')
select * from #temp
This works too:
Code:select 'Value1' as col1 into #temp insert into #temp values( 'Value2') insert into #temp values( 'Value3') insert into #temp values( 'Value4') insert into #temp values( 'Value5') insert into #temp values( 'Value6') select * from #temp
SELECT * FROM ParseStringToTable('Value1,Value2,Value3')
Value1
Value2
Value3