sql insert into temp table from variable