sql - Select multiple columns into multiple variables -


how can in one select multiple columns , put each column in variable?

something this:

--code here v_date1 t1.date1%type; v_date2 t1.date2%type; v_date3 t1.date3%type;  select t1.date1 v_date1, t1.date2 v_date2, t1.date3 v_date3 t1 id='x';  --code here 

any help? ty

your query should be

select t1.date1, t1.date2, t1.date3 v_date1, v_date2, v_date3 t1 id='x'; 

share , enjoy.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -