Updating records
Namespace: Sphp \ Database
An SQL UPDATE
statement changes the data of one or more records in a table.
Either all the rows can be updated, or a subset may be chosen using a condition.
[1]
The Update object executes declarative UPDATE
statement in SQL databases, and conditions for subsets are defined by using Update::where() .
Synopsis
Methods: public table ( string $table ) : static
Error Call to undefined method Sphp\Documentation\SyntaxHighlighting\AccordionBuilder::setup() code: 0 file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/functions.php line: 129 Trace information file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-database-update.php
line: 23
function: Sphp\Manual\codeAccordion
file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line: 58
function: include
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-database-update.php' file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line: 43
class: Man\Routers\ManualPageBuilder
instance method: parse
arguments: 'sphp-database-update' class: Man\Routers\ManualPageBuilder
instance method: __invoke
arguments: object(Sphp\Router\RouteData) file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Router/Router.php
line: 149
function: call_user_func
arguments: object(Man\Routers\ManualPageBuilder) object(Sphp\Router\RouteData) file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php
line: 22
class: Sphp\Router\Router
instance method: execute
file: /home3/fjlpxeha/playground.samiholck.fi/index.php
line: 7
function: require_once
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php'