This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:sql:functions:lpad [2009/12/07 14:25] tdo |
dev:sql:functions:lpad [2012/10/26 14:28] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Omnidex SQL Function: $LPAD ====== | ====== Omnidex SQL Function: $LPAD ====== | ||
| {{page>:sql_bar&nofooter&noeditbtn}} | {{page>:sql_bar&nofooter&noeditbtn}} | ||
| - | |||
| ===== Description ===== | ===== Description ===== | ||
| The $LPAD function adds pad characters to the left of a character string up to the specified total length. | The $LPAD function adds pad characters to the left of a character string up to the specified total length. | ||
| - | The return data type is C STRING of length specified in the n parameter + 1. | + | The return data type is C STRING of length specified in the return_length parameter + 1. |
| ===== Syntax ===== | ===== Syntax ===== | ||
| $LPAD( <column_spec | 'string'> , return_length [ ,pad_character ] ) | $LPAD( <column_spec | 'string'> , return_length [ ,pad_character ] ) | ||