I misteri di Oracle. Concatenamento stringhe e ORA-01756

Delle due seguenti query, la prima da’ errore “ORA-01756 quoted string not properly terminated” e la seconda si conclude regolarmente.

Sembra che faccia la differenza lasciare o meno il ; (punto e virgola) alla fine della riga o meno.

select ' )
WHERE xxxx = '||''''||:az||''''||' AND
yyyy = '||:acr||';
COMMIT;'
from dual

select ' )
WHERE xxxx = '||''''||:az||''''||' AND
yyyy = '||''''||:acr||''''||'
;COMMIT;'
from dual

Lascia un Commento

Fill in your details below or click an icon to log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s

Follow

Get every new post delivered to your Inbox.