home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!cs.utexas.edu!torn!cunews!nrcnet0!netfs!manitou.cse.dnd.ca!pburry
- From: pburry@manitou.cse.dnd.ca (Paul Burry)
- Subject: Re: Sequencer or Serial
- Message-ID: <1992Sep15.025550.27360@manitou.cse.dnd.ca>
- Organization: Canadian System Security Centre
- References: <14821@gazette.bcm.tmc.edu> <howard.716504676@judy.cs.iastate.edu> <06ynl+l.mcentral@netcom.com>
- Date: Tue, 15 Sep 92 02:55:50 GMT
- Lines: 15
-
- In article <06ynl+l.mcentral@netcom.com> mcentral@netcom.com (Media Central) writes:
- . . .
- |begin tran
- | update sequenc set col = col + 1 /* update first and then read */
- | select @latest = col from sequenc where 1 = 1
- |end tran
- . . .
-
- Why the 'where 1 = 1' ? Is this some obscure optimizer work-around?
-
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Paul Burry
- Voice: (613)-991-7325 Internet: pburry@cse.dnd.ca
- Fax: (613)-991-7323 UUCP: ..!{uunet,cunews}!cse.dnd.ca!pburry
-