MySQL Reference Manual for version 4.0.18.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

18.1.6.3 SELECT ... INTO Statement

 
SELECT column[,...] INTO variable[,...] table_expression

This SELECT syntax stores selected columns directly into variables. Therefore, only a single row may be retrieved. This statement is also extremely useful when used in combination with cursors.

 
SELECT id,data INTO x,y FROM test.t1 LIMIT 1;



This document was generated by rdg (Feb 25 2004) using texi2html