MySQL - 10 Update Data MySQL - Tutorial MySQL Bahasa Indonesia
Summary
TLDRThis video tutorial demonstrates how to update data in a database using two methods: Command Prompt (CMD) and phpMyAdmin. The tutorial covers updating all data, targeting specific rows, and modifying multiple attributes in a database table. The instructor uses SQL queries in CMD and the user-friendly phpMyAdmin interface to perform these operations. By the end, viewers learn how to apply updates efficiently, whether through direct SQL commands or a graphical interface, making it easier to manipulate and manage data within a database.
Takeaways
- 😀 The script discusses how to use the 'UPDATE' command to modify data within a database table.
- 😀 The update can be applied to all rows in a table or just specific ones based on a condition.
- 😀 The first method demonstrates updating data using the CMD (Command Prompt) interface.
- 😀 The script shows how to update an entire column, for example, changing the gender of all students to 'male'.
- 😀 The second example demonstrates updating specific data based on conditions, such as changing the gender of a student with a specific ID.
- 😀 The script explains how to update multiple attributes at once, such as changing a student's name and gender.
- 😀 It also illustrates the process of updating multiple attributes for a single student, like their name, gender, and age.
- 😀 In addition to CMD, the script covers how to use phpMyAdmin, a web-based interface for database management, to make updates.
- 😀 Users can edit a single record by simply clicking 'edit' in phpMyAdmin, making changes, and then clicking 'go'.
- 😀 The script also shows how to update multiple records simultaneously in phpMyAdmin by selecting several rows and editing their data at once.
Q & A
What is the main topic of the video?
-The main topic of the video is about using SQL UPDATE statements to modify data in a database table using two methods: the Command Line (CMD) and phpMyAdmin.
What is the purpose of the UPDATE statement in SQL?
-The UPDATE statement in SQL is used to modify existing records in a database table. It can update one or more rows based on specific conditions.
How does the speaker demonstrate updating all records in a table?
-The speaker demonstrates updating all records in a table by using an UPDATE statement without a WHERE clause, which applies the change to every row in the table.
What happens when an UPDATE query is used without a WHERE clause?
-When an UPDATE query is used without a WHERE clause, it modifies all rows in the table, changing the specified columns for every record.
Can the speaker update specific rows using the WHERE clause? How?
-Yes, the speaker updates specific rows by using the WHERE clause to define conditions, such as targeting rows with a particular ID, which ensures that only certain records are modified.
How does the speaker modify multiple attributes in a single row?
-The speaker modifies multiple attributes in a single row by setting different column values in the UPDATE query, separated by commas, and using a WHERE clause to specify the row to update.
What example does the speaker give for updating multiple attributes in one record?
-The speaker provides an example where they update both the 'name' and 'gender' attributes of a student record, changing the name to 'Lusi Ariana' and gender to 'female', for a specific ID.
How does the speaker show the process of using phpMyAdmin to update data?
-The speaker demonstrates using phpMyAdmin by navigating to the database and table, selecting the record to edit, modifying the values in the provided form, and then saving the changes.
What happens when you use the 'Go' button in phpMyAdmin after editing data?
-When the 'Go' button is clicked in phpMyAdmin after editing data, the changes are saved to the database, and the updated values replace the old ones in the selected record.
Can multiple records be updated simultaneously in phpMyAdmin? How?
-Yes, multiple records can be updated simultaneously in phpMyAdmin by selecting multiple checkboxes for different rows, clicking 'Edit', and applying changes to all selected records before clicking 'Go'.
Outlines

Esta sección está disponible solo para usuarios con suscripción. Por favor, mejora tu plan para acceder a esta parte.
Mejorar ahoraMindmap

Esta sección está disponible solo para usuarios con suscripción. Por favor, mejora tu plan para acceder a esta parte.
Mejorar ahoraKeywords

Esta sección está disponible solo para usuarios con suscripción. Por favor, mejora tu plan para acceder a esta parte.
Mejorar ahoraHighlights

Esta sección está disponible solo para usuarios con suscripción. Por favor, mejora tu plan para acceder a esta parte.
Mejorar ahoraTranscripts

Esta sección está disponible solo para usuarios con suscripción. Por favor, mejora tu plan para acceder a esta parte.
Mejorar ahoraVer Más Videos Relacionados

MySQL - 05 Create and Drop Table MySQL - Tutorial MySQL Bahasa Indonesia

EntityFramework Core Migrations | ASP.NET CORE | CLI Migrations | Package Manager Console Migratio

manipulasi DBMS dari CMD part- 1

SIMPLE WAY ON HOW TO CONNECT MYSQL TO PHP MyAdmin.

How to install SQLite database on Windows 11 || Creating a database and table in SQLite 2023 updated

Learn Basic Data Definition Language DDL Commands in MySQL With CMD Query
5.0 / 5 (0 votes)