Home > Database > Mysql Tutorial > body text

About the summary of the additional, deletion and modification operation course

伊谢尔伦
Release: 2017-06-13 10:47:07
Original
1395 people have browsed it

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3) Click the "SQL" button in the main interface of phpMyAdmin to open the SQL statement editing area and enter the complete SQL statement to query the data. Add, modify and delete operations! In the previous article "Detailed graphic explanation of data table addition, deletion and modification operations (phpMyAdmin usage tutorial 2)", we introduced how to complete the operation, creation and deletion of data tables in the phpMyAdmin graphical management tool. Today we Let me introduce to you how to use SQL statements to operate data tables in the phpMyAdmin interface! 1. Use SQL statements to insert data. Use the insert statement item in the SQL statement editing area to insert data into the data table php.cn. Click the "Execute" button to insert a piece of data into the data table. If the submitted SQL statement contains errors, Then the system will give a warning and prompt the user to modify it, as shown below: If the SQL statement has no errors, click the "Browse" button in the upper left corner after submitting it to enter the data display page, as shown below: Tips:

1. Detailed introduction about the main interface

About the summary of the additional, deletion and modification operation course

##Introduction: Use SQL statements to operate data tables Detailed graphic and text explanation (phpMyAdmin usage tutorial 3) Click the "SQL" button in the main interface of phpMyAdmin to open the SQL statement editing area and enter the complete SQL statement to implement data query, add, modify and delete operations! In the previous article "Detailed graphic explanation of data table addition, deletion and modification operations (phpMyAdmin usage tutorial 2)", we introduced how to complete the operation, creation and deletion of data tables in the phpMyAdmin graphical management tool. Today we Let me introduce to you...

2. Detailed graphic and text explanation of adding, deleting and modifying data tables (phpMyAdmin usage tutorial 2)

About the summary of the additional, deletion and modification operation course

#Introduction: Operating a data table is based on selecting a specified database, and then creating and managing data tables in the database. Below we will introduce in detail how to create, modify and delete data tables!

3. Detailed graphic and text explanation of database addition, deletion and modification operations (phpMyAdmin usage tutorial 1)

About the summary of the additional, deletion and modification operation course

Introduction: Whether it is a Windows operating system or a Linux operating system, the method of using the phpMyAdmin graphical management tool is the same.

4. Detailed introduction to the method of using PDO exec() function to query the number of affected rows after execution

About the summary of the additional, deletion and modification operation course

Introduction: This article mainly introduces how PHP uses the exec() function under PDO to query the number of affected rows after execution. It analyzes the use of PHP in the form of examples. When pdo performs addition, deletion and modification operations, the exec() function queries the number of affected rows after the operation is executed. Related implementation tips and precautions, friends in need can refer to the following

5. mysql Commonly used basic operation syntax (3)~~Add, delete, and modify operations on data [command line mode]

About the summary of the additional, deletion and modification operation course

Introduction: 1. Insert a single piece of data: insert into tablename (field name 1, field name 2,...) values ​​(value 1, value 2,...); As can be seen from the figure, each insert is not required. The fields all have values ​​(provided there are no relevant constraints), but it should be noted that the number of fields must be consistent with the number of subsequent values, the order of the custom fields, and the type must also be consistent, otherwise an error will be reported . In addition, if no fields are specified, all fields are selected by default, and each field must have a corresponding value, and it needs to be consistent with

6. mysql Commonly used basic operation syntax (2)~~Add, delete, and modify operations on tables [Command line mode]

About the summary of the additional, deletion and modification operation course

: 1. Modify the table name: Alert Table Oldtableename Rename Newtableename; or Alert Table Oldtableename to Newtableename; Add one last Field column: Alter Table Tableename ADD attribute name attribute type; 3. Add field in the first column of the table: Alter Tabl

7. Thinking

About the summary of the additional, deletion and modification operation course

This Brief introduction: The problem of copying stagnation in the master -slave replication structure is 1032 errors and 1062 errors, Among them, the 1032 error is that after the main library was successfully executed, it was found that this record could not be found from the library when it was update or delete. The 1062 error was that the primary key conflict could not be successful when the main library Insert was completed. These problems can be solved by skipping the error and the previous replication data verification repair, but the direct causes of these problems are that the main and slang data data is inconsistent. In addition to the inconsistent data that may occur in the logical replication itself, there is also a reason for the business side or developers in violation of the regulations to directly add and delete the operation on the preparatory library.

8. [MySQL 14] Trigger after and before

About the summary of the additional, deletion and modification operation course

##Introduction: after completes the addition, deletion and modification of data first, and then triggers. The triggered statement is later than the monitored addition, deletion and modification operation, and cannot affect the previous addition, deletion and modification actions; that is to say, the order record is inserted first, and then the product is updated. Quantity;

9. JS to add, delete, and modify HTML tables

About the summary of the additional, deletion and modification operation course

Introduction: This article mainly introduces JS to add, delete and modify HTML tables in detail. It has certain reference value. Interested friends can refer to it

10. P. When modifying the data in mysql, it is only valid for digital operations, and non -digital operations are invalid. What should I do? _PHP Tutorial

About the summary of the additional, deletion and modification operation course

##Introduction: When PHP modifies data in MySql, it is only valid for numeric operations, not The digital operation is invalid, what should I do? . Problem description: Use PHP to modify the data from the MySQL database, and achieve the addition and deletion and modification (the database can be correctly connected). #[Related Q&A recommendations]:

mysql - Test the query efficiency of different sql statements

The above is the detailed content of About the summary of the additional, deletion and modification operation course. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template