Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dev:sql:functions:trim [2010/07/02 09:02]
tdo
dev:sql:functions:trim [2016/06/28 22:38]
Line 1: Line 1:
-{{page>:​top_add&​nofooter&​noeditbtn}} 
-<​html><​div align="​center"><​span style="​color:​red">​DRAFT</​span></​div></​html>​ 
-====== Omnidex SQL Function: TRIM ====== 
-{{page>:​sql_bar&​nofooter&​noeditbtn}} 
-===== Description ===== 
-The TRIM function removes any leading and/or trailing pad characters from a string. The pad character is a single character and defaults to a space character. 
-===== Syntax ===== 
-TRIM([<​LEADING | TRAILING | BOTH>​]['​character'​][FROM] column | '​string'​) 
  
-== LEADING | TRAILING | BOTH == 
-  
-Optional. Specifies if the leading, trailing or both leading and trailing pad characters will be removed from a string. If omitted, the FROM keyword must also be omitted. BOTH is the default. 
- 
-== '​character'​ == 
-  
-Optional. Specify the pad character that is to be removed. If omitted, white space will be removed. 
- 
-== FROM == 
-  
-DO NOT USE if LEADING, TRAILING, or BOTH keyword was NOT specified. 
- 
-== string == 
-  
-Required. The string that will be "​trimmed"​. 
- 
-===== Examples ===== 
-==== Example 1 ==== 
-select company, trim(contact) from customers where company='​systems'​ 
-==== Example 2 ==== 
-select company, trim(LEADING FROM contact) from customers where company='​systems'​ 
-==== Example 3 ==== 
-select company, trim(TRAILING ','​ FROM contact) from customers where company='​systems'​ 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
dev/sql/functions/trim.txt ยท Last modified: 2016/06/28 22:38 (external edit)