Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 5.2

(Apollo)

declare(l)


FETCH

FETCH

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

NAME

declare - declare a cursor

SYNOPSIS

declare [ binary ] cursor for select statement

DESCRIPTION

Declare allows a user to create cursors. Cursors are only available in transactions.

Normal cursors return data back in ASCII format. Since data is stored natively in binary format, the system must do a conversion to produce the ASCII format. In addition, ASCII formats are often larger in size than binary format. Once the attributes come back in ASCII, often the client application then has to convert it to a binary format to manipulate it anyway.

Binary cursors give you back the data in the native binary representation. Thus, binary cursors will tend to be a little faster since there’s less overhead of conversion.

However, ASCII is architectural neutral whereas binary representation can differ between different machine architecture. Thus, if your client machine uses a different representation than you server machine, getting back attributes in binary format is probably not what you want. Also, if your main purpose is displaying the data in ASCII, then getting it back in ASCII will save you some effort on the client side.

For an example, see the fetch(l) manual page.

SEE ALSO

fetch(l), begin(l), commit(l), select(l).



declare(l)