if object_id(N'mcount14',N'U') is not null
drop
table mcount14;
else
create table mcount14(mc_pro varchar(50),mc_amount varchar(50));
insert into mcount14(mc_pro,mc_amount) values('20420','1.00');
------解决方案--------------------
if/else如果有多语句,需要用begin end包住,不然只执行第一句,比如你的代码,else下面没有begin/end,那么实际上只执行了create table。而insert语句算是另外的语句,当你再次执行的时候,会先drop table,然后继续执行insert(实际上insert是应该和create一起使用的),导致insert报错,也就是说,你的语句中,insert是一定会执行的,不管上面的if/else如何