SQLRef / Quick Reference / Commands / D / DECLARE
SQLRef Menu:
  • Quick Reference:
  • My Bookmarks
Enter a specific command or browse:

| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | All |

Name: declare
Description: set up a cursor
Syntax:
	DECLARE cursorname [BINARY] CURSOR FOR
	SELECT [DISTINCT [ON attrN]]
	expr1 [AS attr1], ...exprN
	[FROM from_list]
	[WHERE qual]
	[GROUP BY group_list]
	[HAVING having_clause]
	[ORDER BY attr1 [USING op1], ...attrN]
	[ { UNION [ALL] | INTERSECT | EXCEPT } SELECT ...];

Detailed Instructions For:
SQLRef Designed by Quentin Smith, © 2001-2003
Email the webmaster.
348140 hits since January, 2001.

Creative Commons License
This work is licensed under a Creative Commons License.