search
HomeDatabaseMysql TutorialDetailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)

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, Open the SQL statement editing area and enter the complete SQL statement to query, add, modify and delete data!

In the previous article " Detailed graphic explanation of data table addition, deletion and modification operations (phpMyAdmin usage tutorial 2)", we introduced how to complete it in the phpMyAdmin graphical management tool For the operation, creation and deletion of data tables, today we will 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 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, the system will give a warning and prompt the user to modify it, as shown below:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)

If the SQL statement is submitted without errors, click the "Browse" button in the upper left corner to enter the data display page, as shown below:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)

##Tips :

For the convenience of writing, you can use the attribute list on the right to select the column to be operated. Just select the column to be added, double-click its option or click "

2. Use SQL statements to modify data

Use update statements in the SQL editing area to modify data information, such as: id is 1 The user's name is changed to "PHP Chinese Network" and the password is changed to: "654321". See the picture below for details:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)##The above picture makes the page after success. In this way, you can look at the page where the data is displayed.

Before modification:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3) After modification:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)It can be seen from the above that the modification has been successful!

3. Use SQL statements to query dataUse the select statement in the SQL statement editing area to retrieve data information with specified conditions, such as: All the information of Xiaoyu 4 is displayed, and the SQL statement is as shown below:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3) Click the "Execute" button to achieve the following picture:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)In addition to simple queries on the entire table, you can also perform some complex conditional queries (use where clauses to submit LIKE, ORDERBY, GROUP BY and other conditional query statements) and multi-table queries!

4. Use SQL statements to delete dataUse the delete statement in the SQL statement editing area to retrieve data or all information under specified conditions, such as: Delete the information named baidu.com. The SQL statement is as follows:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)After clicking "Execute", a box will pop up asking you to confirm. After clicking Confirm, it is as follows Picture:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3) After clicking Browse in the upper left corner, you will find that the user name baidu.com information has been deleted, as shown below:

Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3)

Note: If there is no where conditional statement after the delete statement, all data in the specified data table will be deleted. Isn’t it very simple to use SQL statements to operate data tables? I believe everyone has learned it. Then we will introduce the management of data records below. Please read "

Manage Data Records" for details. Detailed graphic explanation (phpMyAdmin usage tutorial 4)

》! 【Related Recommendations】

1. Relevant topic recommendations: "

phpMyAdmin Usage Tutorial"

2. Recommended related video courses: "MySQL Free Online Tutorial"

3. Online download of related tools: "phpMyAdmin Tool download"


The above is the detailed content of Detailed graphic and text explanation of using SQL statements to operate data tables (phpMyAdmin usage tutorial 3). For more information, please follow other related articles on the PHP Chinese website!

Statement
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
phpmyadmin怎么设置主键phpmyadmin怎么设置主键Apr 07, 2024 pm 02:54 PM

表的主键是一列或多列,用于唯一标识表中每条记录。设置主键的步骤如下:登录 phpMyAdmin。选择数据库和表。勾选要作为主键的列。点击 "保存更改"。主键具有数据完整性、查找速度和关系建模方面的好处。

phpmyadmin怎么添加外键phpmyadmin怎么添加外键Apr 07, 2024 pm 02:36 PM

在 phpMyAdmin 中添加外键可以通过以下步骤实现:选择包含外键的父表。编辑父表结构,在“列”中添加新列。启用外键约束,选择引用表和键。设置更新/删除操作。保存更改。

phpmyadmin日志在哪里phpmyadmin日志在哪里Apr 07, 2024 pm 12:57 PM

PHPMyAdmin日志文件的默认位置:Linux/Unix/macOS:/var/log/phpmyadminWindows:C:\xampp\phpMyAdmin\logs\日志文件用途:故障排除审计安全性

phpmyadmin账号密码是什么phpmyadmin账号密码是什么Apr 07, 2024 pm 01:09 PM

PHPMyAdmin 的默认用户名和密码为 root 和空。为了安全起见,建议更改默认密码。更改密码的方法:1. 登录 PHPMyAdmin;2. 选择 "privileges";3. 输入新密码并保存。忘记密码时,可通过停止 MySQL 服务并编辑配置文件的方式重置密码:1. 添加 skip-grant-tables 行;2. 登录 MySQL 命令行并重置 root 密码;3. 刷新权限表;4. 删除 skip-grant-tables 行,重启 MySQL 服务。

phpmyadmin怎么删除数据表phpmyadmin怎么删除数据表Apr 07, 2024 pm 03:00 PM

phpMyAdmin 中删除数据表的步骤:选择数据库和数据表;点击“操作”选项卡;选择“删除”选项;确认并执行删除操作。

为什么phpmyadmin拒绝访问为什么phpmyadmin拒绝访问Apr 07, 2024 pm 01:03 PM

phpMyAdmin 拒绝访问的原因及解决方案:认证失败:检查用户名和密码是否正确。服务器配置错误:调整防火墙设置,检查数据库端口是否正确。权限问题:授予用户对数据库的访问权限。会话超时:刷新浏览器页面重新连接。phpMyAdmin 配置错误:检查配置文件和文件权限,确保启用了必需的 Apache 模块。服务器问题:等待一段时间后再重试或联系主机提供商。

phpmyadmin漏洞属于什么漏洞phpmyadmin漏洞属于什么漏洞Apr 07, 2024 pm 01:36 PM

phpMyAdmin 易受多种漏洞影响,包括:1. SQL 注入漏洞;2. 跨站点脚本 (XSS) 漏洞;3. 远程代码执行 (RCE) 漏洞;4. 本地文件包含 (LFI) 漏洞;5. 信息泄露漏洞;6. 权限提升漏洞。

phpmyadmin关联视图在哪phpmyadmin关联视图在哪Apr 07, 2024 pm 01:00 PM

可以在 phpMyAdmin 中“结构”选项卡下的“视图”子菜单中找到关联视图。要访问它们,只需选择数据库、点击“结构”选项卡、然后点击“视图”子菜单。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools