Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer