This shows you the differences between two versions of the page.
print [2015/09/23 20:27] |
print [2015/09/23 20:27] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PRINT Statement - PL/HQL Reference ====== | ||
+ | |||
+ | PRINT statement prints a line and can be helpful to debug programs. The statement appends a line terminator. | ||
+ | |||
+ | **Syntax:** | ||
+ | |||
+ | <code> | ||
+ | PRINT exp | ||
+ | or | ||
+ | PRINT(exp) | ||
+ | </code> | ||
+ | |||
+ | **Parameters:** | ||
+ | |||
+ | | **Parameter** | **Type** | **Description** | | ||
+ | | exp | VARCHAR | Text string or expression | | ||
+ | |||
+ | **Return Value:** | ||
+ | |||
+ | No. | ||
+ | |||
+ | **Examples:** | ||
+ | |||
+ | <code language="sql"> | ||
+ | PRINT 'Hello, world!'; | ||
+ | PRINT 'Hello, ' || 'world!'; | ||
+ | PRINT('Hello, world!'); | ||
+ | </code> | ||
+ | |||
+ | **Compatibility**: Microsoft SQL Server | ||
+ | |||