Comments Line in PL/SQL

Oracle, PL SQL, SQL Server,

The PL/SQL supports single line and multi-line comments. All characters available inside any comment are ignored by PL/SQL compiler. The PL/SQL single-line comments start with the delimiter – - (double hyphen) and multi-line comments are enclosed by /* and */.
Example -2
DECLARE
/* This programme written for show my website in PL/SQL programme My website is
www.tutorialslife.com*/


website varchar2(20):= 'www.tutorialslife.com';  --my website is assign to website variable
BEGIN
dbms_output.put_line(website);
END;
/

Output – www.tutorialslife.com
PL/SQL procedure successfully completed.

0 Comments