📅  最后修改于: 2022-03-11 14:54:08.675000             🧑  作者: Mango
$table_name='myTable';
$myID=12;
$wpdb->query($wpdb->prepare("UPDATE `$table_name` SET `your_column_1` = 1 WHERE `$table_name`.`your_column_id` = %d", $myID));