My SQL query returns 132 rows with 1 column, I want to store them for a later use.
I have been through many posts on StackOverflow. I am trying following but it wont help:
DECLARE @store
SET @store=(select paramkey from parameter.p1val2 where paramname = 'BANKHOLIDAYS' and paramkey LIKE 'FI%')
Is it so I have to use a temp table to store all rows ? so I tried following
CREATE TABLE temp_table select paramkey from parameter.p1val2 where paramname = 'BANKHOLIDAYS' and paramkey LIKE 'FI%'
IT gives following error
An unexpected token "CREATE TABLE temp_table" was found following "BEGIN-OF-STATEMENT". Expected tokens may include: "".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.62.57 SQL Code: -104, SQL State: 42601
Br Sara