Update Data

Duration: 7 min

This video lesson is available to enrolled students.

Return to /learn/ASRB-ICAR-T3-T4-INFORMATION-TECHNOLOGY-PRELIMS-MAINS/website-development-html-javascript-css-cmsnet-jsp-php/php/php-database-connectivity-mysql/asset-update-data after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. Prelims: General Knowledge: Physics Chemistry Biology History Geography Polity Indian Economy Static General Knowledge GK- Current Affairs Environment
  2. Prelims: General English: Vocabulary Noun Pronoun Adjectives Preposition Articles Direct and Indirect Speech Tenses Conjunction Subject Verb Agreement (Verb Noun Agreement) Modals Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing) Sentence Correction (Error Correction) Sentence Completion (Fill in the blanks) Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions) Cloze Test (Cloze Passage) Verbal Analogy (Word Based Analogy) Sentence Construction Adverb Verb
  3. Prelims: Quantitative Aptitude: Percentage Ratio and Proportion (Ratios) HCF LCM Divisibility Rules Average Sequence and Series (Series) Number System Powers and Exponents (Surds and Indices) Algebra Profit and Loss Simple Interest and Compound Interest Time and Work Pipe and Cistern Speed Time and Distance Mixture and Alligation Mensuration and Geometry Age Problems Partnership Statistics Data Interpretation Arithmetic
  4. Prelims: General Agriculture: Agriculture in India and Tripura Natural Resource Management Fundamentals of Crop Production Horticulture Crop Improvement Crop Protection Social Science
  5. IT Mains: Operating System: Introduction to OS Process Management CPU Scheduling Process Synchronization Threads & Process Creation Deadlock Memory Management Virtual Memory Disc Scheduling File Management Distributed Systems
  6. IT Mains: Computer Networking: Introduction to CN DLL: Access Control DLL: Flow Control DLL: Error Control Data Link Layer - Ethernet Net Layer: IPv4 & Proto Net Layer: IP Addressing Net Layer:Routing Protocol Transport Layer Services TL: Congestion & UDP Application Layer Hardware Basics Network Security
  7. IT Mains: DBMS: Basics of DBMS ER Diagram Relational Model & Functional Dependencies Keys & Integrity Constraints Normalization (1NF - BCNF) Decomposition Properties & 4NF Relational Algebra SQL Relational Calculus Transaction Management Concurrency Control Database Recovery Big Data Systems Database Security & Authorization Enhanced Data Models NoSQL
  8. IT Mains: Software Engineering: Fundamentals of Software Engineering Software Requirements and Quality Assurance Software Design, Estimation and Metrics Software Testing Software Maintenance and Configuration Management
  9. IT Mains: Data Structures & Algorithms: Introduction to DS Array Stack Queue Linked List Tree Graphs Hashing Algorithm Analysis Time Complexity Analysis Sorting Algorithms
  10. IT Mains: OOPS with C++ & Java: C Fundamentals OOPS with C++ Java Fundamentals Array, String, IO & References OOPS with Java Generic & Collections Multithreading File Handling & I/O
  11. IT Mains: Python: Introduction to Python Tokens, Variables, Data Types, I/O Operators & Expressions Control Flow & Looping Collections & Strings Functions & Modules
  12. IT Mains: Website Development: Website, Browser & Services Internet Fundamentals Web Design & Development Protocols & Services Web Publishing & Hosting Server Side & Security Emerging Technologies HTML Basics HTML5 CSS JavaScript-Basics .Net Programming PHP
  13. IT Mains: Mobile App Development: Mobile Computing Multimedia
  14. IT Mains: Linux / Windows Server Admin: Unix OS Linux OS
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces the MySQL UPDATE statement for modifying existing records in a database table. The instructor begins by writing the general syntax on the board: UPDATE table_name SET column1 = value1, column2 = value2 WHERE condition. The purpose of each clause is explained: UPDATE names the table, SET assigns new values to one or more columns, and WHERE restricts which rows are affected. A worked example uses a Students table with id, name, email, password, and age columns. The query UPDATE Students SET age = 22 WHERE id = 2 changes only Priya's age from 21 to 22, demonstrating that the WHERE clause prevents unintended updates. The lesson then extends to updating multiple columns in one statement: UPDATE Students SET name='Raj Sharma', age=25 WHERE id=2. Finally, the lecture transitions to a practical web application context titled 'Update Password Process (Student) using PHP and MySQL.' A six-panel flow diagram shows a Student Dashboard with sidebar links including Change Password, a password form with Current Password, New Password, and Confirm New Password fields, the PHP script update_password.php, and a students table where the password for id 1 changes from 'rahul123' to 'newpass456'. This connects the SQL UPDATE command to a real-world authentication workflow.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The instructor introduces the MySQL UPDATE statement, stating on screen that 'The UPDATE statement is used to modify existing records in a MySQL table.' The general syntax is written step-by-step on the board: 'UPDATE Table-name SET Column1 = Value1, Column2 = Value2 WHERE Condition;'. The instructor explains that the SET clause specifies new values and the WHERE clause identifies which records should be updated. A Students table with id, name, email, password, and age columns is introduced as the example dataset.

  2. 2:00 – 5:00 02:00-05:00

    The instructor demonstrates updating a single record by writing 'UPDATE Students SET age = 22 WHERE id = 2' on the board. The id value of 2 is circled in the original table to highlight Priya's row, and her age changes from 21 to 22 in the result table. The on-screen note 'Only Priya's age is updated' reinforces that WHERE restricts the modification. The lesson then moves to 'Updating Multiple Columns,' where the instructor writes 'UPDATE Students SET name='Raj Sharma', age=25 WHERE id=2,' showing that multiple column assignments are separated by commas within a single SET clause.

  3. 5:00 – 7:28 05:00-07:28

    The lecture shifts to a practical application titled 'Update Password Process (Student) using PHP and MySQL.' A six-panel flow diagram is displayed. Panel 1 shows a Student Dashboard with sidebar items: Dashboard, Profile, Change Password, Delete Account, and Logout, plus a 'Welcome, Rahul' card. Panel 2 presents the Change Password form with Current Password, New Password, and Confirm New Password fields above an Update Password button. Panel 3 displays PHP code under the heading 'PHP Script (update_password.php).' Panel 4 shows a students table with Before Update and After Update columns, where the password for id 1 changes from 'rahul123' to 'newpass456,' illustrating the SQL UPDATE in a web authentication context.

The lecture progresses from abstract syntax to concrete examples and finally to a real-world application. The core concept is that UPDATE modifies existing rows, with SET defining what changes and WHERE ensuring only intended records are affected. The single-record example (age 21 to 22 for id 2) and the multi-column example (name and age together) build procedural fluency. The final PHP/MySQL password-update flow grounds the SQL command in a typical student portal workflow, showing how form input leads to an UPDATE query that changes a stored password. Key exam points: correct clause order (UPDATE, SET, WHERE), comma separation for multiple columns, and the critical role of WHERE in preventing table-wide updates.

Loading lesson…