Home

SQL Operators: PRINT

 

Introduction

To display something in plain text as a result of a statement, type PRINT followed by what to display. Therefore, PRINT uses the following formula:

PRINT WhatToPrint

The item to display can be anything that is allowed and it is provided on the right side of PRINT. If it is a regular constant number, simply type it on the right side of PRINT. Here is an example:

Using PRINT

The item to display can also be an operation or the result of an operation. If you want to display a character, a word, or a sentence, include it between single-quotes. If you want to include a single-quote in your statement, double it; that is, write it twice. Here is an example:

You can also display an expression as a combination of number(s) and sentences as we will learn later.

 

Home Copyright © 2007-2009 FunctionX, Inc.