Hi
A simple task drives me crazy today...
I want to fill a Textfield with a default value.
I wrote this code as a process:
begin
:P9_Textfield := (SELECT my_def_value FROM my_table WHERE my_description = 'take_this_one');
end;
Which causes following Error:
1 error has occurred
* ORA-06550: line 3, column 42: PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null others <an identifier>...
my_table looks like this:
ID---my_description-------my_def_value
_________________________________
1----"take_this_one"------"def_val1"-----
2--- "not_this"--------------"def_val2"-----
I can't find the reason. What's wrong with this?
Thank you!
pAT