Set WeberTrivia.com to be my default homepage.   Suggest a Question                                               

Suggest A Question : :  Frequently Asked Questions : :  Search : :  Relevant Manuals : : 
PHP Questions : :  Linux Questions : :  MySQL Questions : : 
home  [ Login ] 

MOVE

Name

MOVE -- position a cursor

Synopsis

MOVE [ direction { FROM | IN } ] cursorname

Description

MOVE repositions a cursor without retrieving any data. MOVE works exactly like the FETCH command, except it only positions the cursor and does not return rows.

Refer to FETCH for details on syntax and usage.

Outputs

On successful completion, a MOVE command returns a command tag of the form

MOVE count

The count is the number of rows moved over (possibly zero).

Examples

BEGIN WORK; DECLARE liahona CURSOR FOR SELECT * FROM films;  -- Skip the first 5 rows: MOVE FORWARD 5 IN liahona; MOVE 5  -- Fetch the 6th row from the cursor liahona: FETCH 1 FROM liahona;  code  | title  | did | date_prod  |  kind  |  len -------+--------+-----+------------+--------+-------  P_303 | 48 Hrs | 103 | 1982-10-22 | Action | 01:37 (1 row)  -- Close the cursor liahona and end the transaction: CLOSE liahona; COMMIT WORK;

Compatibility

There is no MOVE statement in the SQL standard.

Who's Online
Guest Users: 12
Google
Web
WeberTrivia
WeberDev
WeberForums
 Free Sample Chapters  Free Sample Chapters
  Deliver First Class Web Sites: 101 Essential Checklists
Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?

More Sample Chapters

PHP General