NexusDB Manual V3 > SQL Reference > SQL Statements > Data Statements
Update rows of a table.
Syntax
<update statement: searched> ::=
<set clause list> ::=
<update source> ::=
Usage
The UPDATE statement is used to modify the value of one ore more columns in a selection of rows in the table identified by table-name.
Notes
Tip: Using a prepared statement with parameters is more efficient than executing a sequence of individual UPDATE statements with explicit values.
UPDATE students SET studentName = firstName || ' ' || lastName, address = '983 Park Avenue', city = 'Boston', state = ( SELECT state FROM students WHERE studentID = 473 ), zip = '02169' WHERE studentID = 211
UPDATE students SET studentName = :firstName || ' ' || :lastName, lastName = :lastName, firstName = :firstName, address = :address, city = :city, state = :state, zip = :zip, gender = :gender WHERE studentID = :studentID
Conformance
|
© Nexus Database Systems Pty Ltd.