User Tools

Site Tools

A PCRE internal error occured. This might be caused by a faulty plugin


**HPL/SQL is included to Apache Hive since version 2.0** * [[home|Home]]\\ * [[why|Why HPL/SQL]]\\ * [[features|Key Features]]\\ * [[start|Get Started]]\\ * [[doc|HPL/SQL Reference]]\\ * [[download|Download]]\\ * [[new|What's New]]\\ * [[about|About]]


====== TRIM Function - PL/HQL Reference====== TRIM function removes leading and trailing characters from a string. **Syntax**: <code language="sql"> TRIM(string_expression); </code> **Return Type:** STRING **Example 1:** <code language="sql"> '#' || TRIM(' Hello ') || '#'; -- #Hello# </code> **Compatibility**: Oracle, IBM DB2, Teradata, Microsoft SQL Server, PostgreSQL, MySQL and Netezza **Version**: PL/HQL 0.03