Link to home
Start Free TrialLog in
Avatar of JAMES
JAMES

asked on

IF(not exist .... not working...(for me)

Hi,

I am old to databases but new to Firebird!  Could you help with the syntax for the following statement please :-

IF (not exists(select PlayerID from Player where Site = 'SITE' and Alias = 'JAMES'))
insert into Player(Site,Alias) values ('SITE','JAMES')

Im getting invalid token on IF and it's Driving me mad!

Thanks.

James.
ASKER CERTIFIED SOLUTION
Avatar of Nick Upson
Nick Upson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial