数据比对是否存在
用条码枪扫描一串数字,如何判断改数字存在数据库中
[解决办法]
int i
select count(1) into :i from 表 where 条码字段='条码数据' ;
if i > 0 then
//存在
else
//不存在
end if
[解决办法]
发布时间: 2012-02-07 17:45:36 作者: rapoo
数据比对是否存在
用条码枪扫描一串数字,如何判断改数字存在数据库中
[解决办法]
int i
select count(1) into :i from 表 where 条码字段='条码数据' ;
if i > 0 then
//存在
else
//不存在
end if
[解决办法]