skip to main content
Basic elements of SQL : Comments : Oracle-Style comments
 

Oracle-Style comments

Select empno, ename, dname -- employee’s department name
FROM emp, dept -- table-list
-- we will join using deptno
WHERE dept.deptno = emp.deptno;
Mixed style comments
SELECT empno, ename, /* employee’s department name */ dname FROM emp, dept
-- table-list
WHERE dept.deptno = emp.deptno;