sql - Temp table (XXX) already exists in session -


i try fill temp table following error :

sql error (-958) : temp table (temp_table11) exists in session. 

create temp table temp_table11   ( emp_num int);   select emp_num hrgetd  temp_table11 where( emp_num = v_emp_num , calc_year = p_calc_year) 

you trying create table again in select statement, try this

create temp table temp_table11   ( emp_num int);  insert temp_table11 select emp_num hrgetd where( emp_num = v_emp_num , calc_year = p_calc_year) 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -