解决方法: 1,打开查询分析器,选择好对应的药店数据库名称,复制如下语法执行: usehzposyy_zq ifEXISTS(SELECT*FROMsysobjectsWHEREname='salepos_2012')droptablesalepos_2012 selectitem_nointosalepos_2012frompos_sale_detailwhereapprove_flag'1'andbranch_no='0001' and(item_nonotin(selectitem_nofrombase_warehouse_