Subject | Re: [firebird-support] check for exist with assignment |
---|---|
Author | Daniel L. Miller |
Post date | 2013-11-10T20:08:24Z |
On 11/10/2013 1:16 AM, Ivan Přenosil wrote:
if I haven't specifically assigned anything to it prior to the select?
--
Daniel
>> Option 2:After the select statement, if no row is found, what value will NEWID be
>> select ID from CITIES where CITY = :NEWCITY into :NEWID;
>> if ( NEWID is not null ) then suspend;
>> /* Do insert operation since nothing found */
> Do not forget that this requires NEWID to be set to Null before calling select !
if I haven't specifically assigned anything to it prior to the select?
--
Daniel