Way of declaring variables?

2006-04-03 Thread Yemi Obembe
Got the snippet from the mysql website: select @last := last_insert_id() i av the hunch that is to assign the variable 'last' to the last_insert_id(). Im i right? is placing @ before a word mysql's way of declaring variables? what's the work of the colon preceeding the equal sign? -- http

Re: Way of declaring variables?

2006-04-03 Thread Gabriel PREDA
Developer On 4/3/06, Yemi Obembe [EMAIL PROTECTED] wrote: Got the snippet from the mysql website: select @last := last_insert_id() i av the hunch that is to assign the variable 'last' to the last_insert_id(). Im i right? is placing @ before a word mysql's way of declaring variables? what's