DISC

Contents | What's New | Quick Links

 

SQL Functions

Introduction

Software Installation

Concepts and Design

Designing Applications

Omnidex Environments

SQL Reference

Omnidex API's

Utilities

Interfaces

Performance Guide

Troubleshooting Guide

Appendix

 

 

$LPAD

 

The $LPAD function adds pad characters to the left of a character string up to the specified total length.

The return datatype is C STRING of length specified in the n parameter.

Syntax

Example

SQL Reference

Commands

Functions

 

Syntax

$LPAD(string, n [,pad])

$LPAD()

Required.

string

Required. The string to be "padded". If the length of the string is longer than n, the portion of the string that fits into n is returned.

n

Required. n is the total length of the return value ( 0 < n <= 255)

pad

Optional. pad evaluates to a single character. The default is the space character.

top

 

Example

SELECT $LPAD(COMPANY, 45, '*'), $RPAD(COMPANY, 45, '*') FROM CUSTOMERS WHERE COMPANY='SYSTEMS'

*****Dynamic Information Systems Corporation
Dynamic Information Systems Corporation *****

 

 

top

Dynamic Information Systems Corporation - Omnidex Version 3.8 Build 6 J15.03-Copyright © 2003

DISC | Documentation Home