Question : sqlplus insert into select script

Hi All,    
When I run the following script in SQL Developer, 2280 rows are inserted into table uectemp_asb.  

insert into uectemp_asb --(module_sn,meter_id)
select module_sn, meter_sn
from uecint
  left join f_int_30_min
    on f_int_30_min.entity_id = uecint.meter_entity
  left join date_day
    on date_day.date_day_id = f_int_30_min.date_day_id
WHERE f_int_30_min.ATTRIBUTE_ID = 100094
  AND date_day.day_date = TO_CHAR(sysdate-2)
  and f_int_30_min.scenario_id = 1001;

However, when I run above script in sqlplus (along with commit command), same number of rows selected but are not inserted into table.   What am I missing?

Answer : sqlplus insert into select script

you can use associative array notation instead of evaluate() in most cases.

suppose you have text fields text1, text2, ..., textN in your form. then on the action page you can access them inside a cfloop like this without evaluate() function:

<cfloop from="1" to="N" index="x">
#form["text" & x]#
</cfloop>

if you post your code that uses evaluate(), then we can show you how to change it to use array notation.

all the above said, evaluate() is not as bad as it used to be in cf6 and before... it's just that there are really very few cases where one needs to use it.

Azadi
Random Solutions  
 
programming4us programming4us