Apache Hive : HPL/SQL - PRINT Statement

Last updated: August 12, 2026

Apache Hive : HPL/SQL - PRINT Statement

PRINT statement prints a line and can be helpful to debug programs. The statement appends a line terminator.

Syntax:

PRINT exp
or
PRINT(exp)

Parameters:

ParameterTypeDescription
expVARCHARText string or expression

Return Value:

No.

Examples:

PRINT 'Hello, world!';
PRINT 'Hello, ' || 'world!';
PRINT('Hello, world!');

Compatibility: Microsoft SQL Server