数据比对是否存在用条码枪扫描一串数字,如何判断改数字存在数据库中[解决办法]int iselect count(1) into :i from 表 where 条码字段='条码数据' ;if i > 0 then //存在else //不存在end if[解决办法]