Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Management

Advanced

Raw object

PDO object

Debug

Information

version: 2.1.12

replace

Replace old data with a new one

replace($table, $columns, $where)
Return: [PDOStatement] The PDOStatement object.
$database->replace("account", [
	"type" => [
		"user" => "new_user",
		"business" => "new_business"
	],
	"column" => [
		"old_value" => "new_value"
	]
], [
	"user_id[>]" => 1000
]);