Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: association operator (=>) and SQL

Re: association operator (=>) and SQL

From: Lex de Haan <lex.de.haan_at_naturaljoin.nl>
Date: Fri, 15 Apr 2005 21:03:47 +0200 (CEST)
Message-ID: <2649.66.89.175.2.1113591827.squirrel@webmail.tiscali-business.nl>


No, you can't -- because you are now in the SQL world :-) so just specify "select greeting('Joe') from dual" and it will do the trick...

Cheers,
Lex.

> SQL> create function greeting (p_name varchar2)
> 2 return varchar2
> 3 is
> 4 begin
> 5 return 'Hello '||p_name;
> 6 end;
> 7 /
>
> Function created.
>
> SQL> select greeting(p_name=>'Joe')
> 2 from dual;
> select greeting(p_name=>'Joe')
> *
> ERROR at line 1:
> ORA-00907: missing right parenthesis

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Apr 15 2005 - 15:07:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US