I have some SQL scripts for Oracle and I wonder to know exactly what is the objective of the following line:
REM INSERTING into TABLE_NAME
After this line I get the inserts for the table.
Insert into TABLE_NAME (ID,ENUM_KEY,NAME,DESCRIPTION) values (3,3,'T_EXIT_POINT','T_EXIT_POINT');
Insert into TABLE_NAME (ID,ENUM_KEY,NAME,DESCRIPTION) values (4,4,'T_CONDITION','T_CONDITION');
Anyone can explain me this REM INSERTING, or where to find documentation about it?
REM, or short for REMARK, is used in SQL*Plus to indicate the beginning of a comment in a SQL script. Read more about REM in the documentation here.
Instead of
I suggest you use PROMPT
That way the script output would contain the string “INSERTING into TABLE_NAME”.
More about PROMPT here. It’s especially useful when you have ECHO OFF.