I have a script where it is necessary to add now in the current statement a received COMMENT text from the user as parameter. Below is an example but it is failing. Can someone help me with this ?
\<sup\>#!/usr/bin/ksh
export COMMENTS=${1}
echo ${COMMENTS}
echo "========================================="
sqlplus -s $CONNECT_STRING \<\<-EOF
whenever sqlerror exit 2;
insert into TEST_CACM (COMMENTS) values ('${COMMENTS}');
commit;
EOF\</sup\>
When we execute it fails because special character.
<kbd>test.ksh "Let's test this ##@@"
Let's test this ##@@
=========================================
ERROR:
ORA-01756: quoted string not properly terminated</kbd>
Note: The user can be put any comment. Whatever comment the user add should be stored in the table.