gatewayworker连接mysql后该怎么判断表中是否存在某条数据

使用中发现,如果数据库中查找到数据可以正常运行,没有查找到符合条件的数据会直接报错。 $result=$db->select('id')->from('collect_device')->where("unique_identification_number= $fromid ")->single(); echo $result;...

sunkkkk 发表与 2022-03-31 666 浏览 1 回答

sunkkkk

100
积分
0
获赞数
0
粉丝数
2022-03-31 加入
🔝