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

 

 

CHARACTER_LENGTH | CHAR_LENGTH

 

The CHARACTER_LENGTH and CHAR_LENGTH functions return the number of characters in a string. The number returned is a 4-byte integer.

CHARACTER_LENGTH and CHAR_LENGTH should not be confused with $COL_LEN and $COLUMN_LENGTH which return the length of the column as it is defined in the environment catalog.

CHARACTER_LENGTH and CHAR_LENGTH are the same function. Both are supported for flexibility.

LENGTH is supported in Omnidex SQL Plus ONLY.

Syntax

Example

SQL Reference

Commands

Functions

 

Syntax

CHAR[ACTER]_LENGTH (string)

CHAR[ACTER]_LENGTH

Required. Both functions are the same.

(string)

Required. Any string. This can be a literal or data from a column.

top

 

Example

select company, city,

char_length (city)

from customers
where state = 'co'

OR

select company, contact,

character_length ("Denver")

from customers
where state = 'co'

 

 

top

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

DISC | Documentation Home