Re: Re-use a result field into a query

2005-06-12 Thread Alvaro Cobo
ot; <[EMAIL PROTECTED]> Cc: "Alvaro Cobo" <[EMAIL PROTECTED]>; Sent: Sunday, June 12, 2005 1:11 PM Subject: Re: Re-use a result field into a query > Well Alvaro, > you can use variables to re-use resultas like that : > > mysql> set @rs=0; > Query OK, 0 rows a

Re: Re-use a result field into a query

2005-06-12 Thread mfatene
---+ | 1 | 5 | 500 | +---+-+-+ 1 row in set (0.00 sec) Mathias Selon Jigal van Hemert <[EMAIL PROTECTED]>: > From: "Alvaro Cobo" <[EMAIL PROTECTED]> > To: > Sent: Sunday, June 12, 2005 8:17 AM > Subject: Re-use a result field into a quer

Re: Re-use a result field into a query

2005-06-12 Thread Jigal van Hemert
From: "Alvaro Cobo" <[EMAIL PROTECTED]> To: Sent: Sunday, June 12, 2005 8:17 AM Subject: Re-use a result field into a query > Is it possible to refer into a query to a result field from the same query?. > For example: a query which uses the field name of a result (alias) t

Re-use a result field into a query

2005-06-11 Thread Alvaro Cobo
Hi guys. I´ve got a low-priority, non-important newbie question: Is it possible to refer into a query to a result field from the same query?. For example: a query which uses the field name of a result (alias) to create a new field: Select a.field1, (a.field2+a.field3) AS result1, (result1*1