PHP - Manual: DatabaseObject::existsInDatabase
2024-12-20
(No version information available, might only be in Git)
DatabaseObject::existsInDatabase — Check if object exists in database
Verifies if the database object refers to an object that exists in the database.
此函数没有参数。
Returns true
if object exists in the database, else false
if it does not.
示例 #1 mysql_xdevapi\DatabaseObject::existsInDatabase() example
<?php
$existInDb = $dbObj->existsInDatabase();
?>
官方地址:https://www.php.net/manual/en/mysql-xdevapi-databaseobject.existsindatabase.php