Uncommon · Knowledge
Update (SQL)
SQL statement
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 WHERE condition. If a condition is not used, then every row of the value is updated.
From Wikipedia
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 WHERE condition. If a condition is not used, then every row of the value is updated. The UPDATE statement has the following form: UPDATE table_name SET column_name = value [, column_name = value ...] [WHERE condition] For the UPDATE to be successful, the user must have data manipulation privileges (UPDATE privilege) on the table or column and the updated value must not conflict with all the applicable constraints (such as primary keys, unique indexes, CHECK constraints, and NOT NULL constraints). In some databases, such as PostgreSQL, when a FROM clause is present, the target table is joined to the tables mentioned in the fromlist, and each output row of the join represents an update operation for the target table. When using FROM, one should ensure that the join produces at most one output row for each row to be modified. In other words, a target row shouldn't join to more than one row from the other table(s). If it does, then only one of the join rows will be used to update the target row, but which one will be used is not readily predictable. Because of this indeterminacy, referencing other tables only within sub-selects is safer, though often harder to read and slower than using a join. MySQL does not conform to the ANSI standard.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
S★
Status bar
User interface element
-
★
Echo (command)
Command of DOS, OS/2, Microsoft Windows, Unix and Unix-like operating systems
-
c★★
calculation
Method in accounting
-
r★
recovery
Process by which something is returned to its former status or position
-
H★
Hagenbach-Bischoff system
Method of allocating seats in a parliament
-
S★
Sixth normal form
Relational database normalization form which generalizes relational operators to support interval data
-
U★★
Unified biometric system
A state information system that collects biometric personal data, stores it, and uses it for user authentication and identification
-
D★
Dictum
Statement made in a legal ruling
-
★
Legacy system
Old computing technology or system that remains in use and may be out of date or in need of replacement
-
H★
Health data
Any data related to health conditions, reproductive outcomes, causes of death, and quality of life
-
S★
SQL Server Management Studio
Software application
-
★★★
Consignment
Act of consigning
-
P★★
Primary elections in the United States
Candidate selection for a United States general election, at the federal, state, or local level
-
★★★
If and only if
Logical connective
-
★★★★
Gerrymandering
Manipulation of electoral borders to favor certain electoral outcomes
-
★★★★
Enzyme
Large biological molecule that acts as a catalyst
-
★★
insertion
Putting one physical or abstract object to include it at a particular position inside another object forming a structure
-
H★
Hash chain
Method of producing many one-time keys from a single key or password