If exists (Select * from TableA where PKEY = '1' )BEGIN ---Display the content of the table Select * FROM TableA Print 'Table A info'ENDElse BEGIN Insert Into TableA (X,Y,Z) Values(1,'testLink', TestValue) Print 'Table has been inserted with the specified data'END
IF () begin endelse begin end