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

 

 

$SEQUENCE

 

Returns a sequentially ascending or descending number.

Return datatype is a 4-byte INTEGER.

Syntax

Example

SQL Reference

Commands

Functions

 

Syntax

$SEQUENCE(sequence_name [, options])

sequence_name

sequence_name is the name of a sequence created using the CREATE SEQUENCE statement.

options

options is a character string determining the action to take against sequence_name

CURRENT return the current value of sequence_name

NEXT increment the value of sequence_name after returning the value.

PREVIOUS decrement the value of sequence_name after returning the value.

 

top

 

Example

SELECT $SEQUENCE(‘products_sequence’, ‘next’) …

 

top

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

DISC | Documentation Home