if exists (select *From statistics where msg_id='') begin print 'exists' end else begin insert query end
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)