SpiritOfLennon
IS-IT--Management
Hi
I have the following within a procedure
TYPE type_part_need IS RECORD (
long list of field definitions );
v_part_need = type_part_need;
SELECT *
INTO v_part_need
FROM part_need;
update v_part_need set (
long list of fields to update );
And Oracle 7 doesn't like the use of v_part_need.
Basically what I am trying to do is create a record type using a row definition, setting a variable equal to the record type selecting the records into the variable and then updating certain fields before loading the variable back into the table and it does not like the update statement. Do I have to individually select each field into variables and then load each variable into it's field or is there a shortcut to do this? SOL
I'm only guessing but my guess work generally works for me.
I have the following within a procedure
TYPE type_part_need IS RECORD (
long list of field definitions );
v_part_need = type_part_need;
SELECT *
INTO v_part_need
FROM part_need;
update v_part_need set (
long list of fields to update );
And Oracle 7 doesn't like the use of v_part_need.
Basically what I am trying to do is create a record type using a row definition, setting a variable equal to the record type selecting the records into the variable and then updating certain fields before loading the variable back into the table and it does not like the update statement. Do I have to individually select each field into variables and then load each variable into it's field or is there a shortcut to do this? SOL
I'm only guessing but my guess work generally works for me.