Get Started

Upgrade

Where Syntax

Query

Fetch

Transaction

Advanced

Raw object

PDO object

Debug

Information

version: 1.5.4

replace

Replace old data into 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
]);