PHP 8.4.2 Released!

TableDelete::where

(No version information available, might only be in Git)

TableDelete::whereDéfinit la condition de recherche de suppression

Description

public mysql_xdevapi\TableDelete::where(string $where_expr): mysql_xdevapi\TableDelete

Définit la condition de rechercher pour filtrer.

Liste de paramètres

where_expr

Définit la condition de recherche pour filtrer les documents ou les enregistrements.

Valeurs de retour

Un objet TableDelete.

Exemples

Exemple #1 Exemple de mysql_xdevapi\TableDelete::where()

<?php
$session
= mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$schema = $session->getSchema("addressbook");
$table = $schema->getTable("names");

$table->delete()
->
where("id = :id")
->
bind(['id' => 42])
->
limit(1)
->
execute();

?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top