Tuesday 28 May 2013

Literal Character String in SELECT statement


  • A literal is a character, a number or a date included in the SELECT statement list.
  • Date and character literal values must be enclosed within single quotation marks.
  • Each character string is output once for each row returned.
Using Literal Character String:


The Example above displays the names and job codes of all employees. The column has the heading Employee Details. Notice the spaces between the single quote marks in the select statement. The spaces improves the readability of the output. 

No comments:

Post a Comment