To update existing records in a database, the _____ statement is used in SQL.
- UPDATE
- INSERT
- DELETE
- ALTER TABLE
The correct answer is "UPDATE." In SQL, the UPDATE statement is used to modify existing records in a database. You specify the table you want to update and set new values for the columns based on a condition that identifies the rows to be updated. The UPDATE statement is crucial for maintaining and modifying data in a database, ensuring that it reflects the latest information.
Loading...
Related Quiz
- What are the basic data types available in Go?
- Explain how error handling is typically done in idiomatic Go code.
- Explain the role of the testing.T type in Go's testing framework.
- Describe a real-world scenario where interface embedding would be useful.
- How do you specify a specific version of a dependency using Go Modules?