|
|
|
|
Re: set_block_property default where ,, why we use that much apostrophe [message #681891 is a reply to message #681887] |
Sun, 06 September 2020 04:46 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
If you test it:orclz> var block4 varchar2(10)
orclz> exec :block4:='aaa'
PL/SQL procedure successfully completed.
orclz> select 'hiredate=' || chr(39) || :block4 || chr(39) from dual;
'HIREDATE='||CHR(39)||:BLOCK4||CHR(39)
-------------------------------------------
hiredate='aaa'
orclz> select 'hiredate=' || :block4||' from dual;
ERROR:
ORA-01756: quoted string not properly terminated
orclz> select 'hiredate=' || :block4 from dual;
'HIREDATE='||:BLOCK4
-----------------------------------------
hiredate=aaa
orclz> the difference is clear.
|
|
|