Re: Infinity as field value

2005-03-29 Thread Daniel Kasak
Scott Klarenbach wrote: >Is there a way to represent infinity in mysql? > >I've got a range field in my GUI, which is "> x"... > >if the user chooses this field, in the DB, I store it as: > >id | from | to | other >2 | x | infinity | etc... > >this is because there are situations of "< x" and "bet

Re: Infinity as field value

2005-03-29 Thread Renato Golin
On Tuesday 29 March 2005 20:51, Scott Klarenbach wrote: > Is there a way to represent infinity in mysql? > > I could make infinity default to 100,000,000 or some other number I > know will never be reached, but it seems less elegant a solution... probably not the best but you could have two fields

Infinity as field value

2005-03-29 Thread Scott Klarenbach
Is there a way to represent infinity in mysql? I've got a range field in my GUI, which is "> x"... if the user chooses this field, in the DB, I store it as: id | from | to | other 2 | x | infinity | etc... this is because there are situations of "< x" and "between x AND y", so from and to is th