方法1:SELECT COUNT(*) FROM oneTable WHERE colName = “某值”;
方法2:SELECT 1 FROM oneTable WHERE colName = “某值” LIMIT 1;
文章标签 java判断mysql服务是否正常 MySQL 判断表中是否存在某条数据 文章分类 Java 后端开发
方法1:SELECT COUNT(*) FROM oneTable WHERE colName = “某值”;
方法2:SELECT 1 FROM oneTable WHERE colName = “某值” LIMIT 1;
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M