> > SYBASE:: > select 1 where exists > ( select * from some_table where some_column = 'some_value') > > Anyway, it's obviously not as portable as any of the other methods, but I'm > just trying to brainstorm the possibilities of the best methods for an > existence lookup. Most portable is: select count(*) from some_table where some_column = 'some_value' As i posted before. Will give you an integer. Any integer that is not 0 is a true value to Perl. Maarten.
- Re: Checking for the existence of a certain row. Thomas A . Lowery
- RE: Checking for the existence of a certain row. Tim Harsch
- RE: Checking for the existence of a certain row. Steve Howard
- Re: Checking for the existence of a certain row. M.W. Koskamp
- Re: Checking for the existence of a certain row. James Kufrovich
- Re: Checking for the existence of a certain row. Thomas A . Lowery
- RE: Checking for the existence of a certain row. Tim Harsch
- Re: Checking for the existence of a certain row. Michael A. Chase
- Re: Checking for the existence of a certain row. Peter J . Holzer
- RE: Checking for the existence of a certain row. M.W. Koskamp
- RE: Checking for the existence of a certain row. Tim Harsch
- Re: Checking for the existence of a certain row. Peter J . Holzer
- RE: Checking for the existence of a certain row. Dan Hopkins
- Re: Checking for the existence of a certain row. Ronald J Kimball
- RE: Checking for the existence of a certain row. Tim Harsch
- Re: Checking for the existence of a certain row. Ronald J Kimball
- RE: Checking for the existence of a certain row. Michael Peppler
- RE: Checking for the existence of a certain row. Sarnowski, Chris
- RE: Checking for the existence of a certain row. Wilson, Doug