Ver originalIF (SELECT COUNT(numero) FROM tabla WHERE numero=@tu_numero)=0 print 'numero no existe'ELSE print 'numero existe'