java 判定有一条数据是否存在

2025-02-27 15:42:19
推荐回答(1个)
回答1:

先写查询语句
select count(*) from 表名
where 主键或其他条件
然后用jdbc的statement的方法查询即可