MySQL 数据库环境使用攻略(6)[图]_MySQL
当然我们可以直接使用SQL语句来创建该表,只需要在图2-13右侧的“SQL编辑器”选项卡中输入下面的SQL语句,单击“执行”按钮即可。
CREATE TABLE IF NOT EXISTS user (
ID int(10) unsigned NOT NULL auto_increment,
username varchar(50) ,
password varchar(50) ,
email varchar(50) ,
PRIMARY KEY (ID),
UNIQUE KEY ID (ID),
KEY ID_2 (ID)
);
2.5.5 添加一条用户数据
为了在后面的系统开发中可以进行登录,我们首先在用户表user中添加一个用户记录。选择图2-13左侧的“demo”→“user”选项,在右侧的“数据浏览器”选项卡中即可显示该表的数据列表,如图2-17所示。
图2-17 添加一条用户数据
在图2-17的表格中添加一个用户admin,密码设置为admin,E-mail地址为abc@163.com。然后单击工具栏中的“√”按钮,即可提交保存。
当然我们也可以通过在“SQL编辑器”中执行下面的SQL语句来添加该条数据:
INSERT INTO user VALUES("1", "admin", "admin", "abc@163.com");
需要说明的是,使用“SQL编辑器”的SQL执行功能可以很方便地进行开发。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Have you ever faced any issues while transferring files that prevented you from doing so? Well, many Windows users have recently reported that they faced issues while copying and pasting files into a folder, where an error was thrown saying “The file name of the destination folder is too long”. Additionally, some other Windows users expressed frustration when opening any file and said "the file name or extension is too long" and they were unable to open the file. This disappoints users by not allowing them to transfer files to any other folder. While analyzing the issue, we have come up with a series of solutions that may help alleviate the issue and allow users to transfer files easily. If you are in a similar situation, please see this post for more information. Source: https

Many Windows users have recently reported that they were annoyed when Windows Defender SmartScreen warned users not to launch applications that were not recognized by Microsoft Windows and they had to click on the "Run anyway" option every time. Windows users are unsure what they can currently do to avoid or disable it. After researching the issue, we found that Windows Defender functionality on the system can be disabled through the Settings application or the Local Group Policy Editor or by adjusting the registry files. By doing this, users will no longer have to face the defender SmartScreen. If your system also encounters

There is no better way to write Python code than using an integrated development environment (IDE). Not only can they make your work simpler and more logical, they can also improve programming experience and efficiency. Everyone knows this. The question is, how to choose the best Python development environment among the many options.

C language is a basic and important programming language. For beginners, it is very important to choose appropriate programming software. There are many different C programming software options on the market, but for beginners, it can be a bit confusing to choose which one is right for you. This article will recommend five C language programming software to beginners to help them get started quickly and improve their programming skills. Dev-C++Dev-C++ is a free and open source integrated development environment (IDE), especially suitable for beginners. It is simple and easy to use, integrating editor,

Many Windows users have encountered the problem of being unable to log in to Windows 11/10 systems due to failed login attempts or multiple system shutdowns. Users are frustrated because there is nothing they can do about it. Users may forget their PIN code to log into the system, or experience lags when using or installing software, and the system may be forced to shut down multiple times. Therefore, we have compiled a list of the best available solutions that will undoubtedly help consumers solve this problem. To learn more, continue reading this article. Note: Before doing this, make sure you have your system's administrator credentials and Microsoft account password to reset your PIN. If not, wait an hour or so and try with the correct PIN

Title: Use of Prim algorithm and code examples in C++ Introduction: Prim algorithm is a commonly used minimum spanning tree algorithm, mainly used to solve the minimum spanning tree problem in graph theory. In C++, Prim's algorithm can be used effectively through reasonable data structures and algorithm implementation. This article will introduce how to use Prim's algorithm in C++ and provide specific code examples. 1. Introduction to Prim algorithm Prim algorithm is a greedy algorithm. It starts from a vertex and gradually expands the vertex set of the minimum spanning tree until it contains

Remember Windows MovieMaker on Windows 7? Since discontinuing Windows MovieMaker, Microsoft hasn't launched any real movie makers. On the other hand, they tried to revamp the Photos app with a small and lightweight built-in video editor. After a long time, Microsoft launched Clipchamp, a better video processor for all Windows 11 devices. In this article, we’ll take a deep dive into how to get everything from the Clipchamp app on your Windows 11 device. How to use Clipchamp – Detailed tutorials are available

A word editor, also known as a word processor, can be defined as a device or software that allows you to create, print, and edit documents. You can type content, display it on a screen or in printed material, store it electronically, and modify it from the keyboard using different keyboard shortcuts, characters, and commands, including keyboard shortcuts for strikethrough. Computers are built to help solve different problems. However, word processing is the most popular feature they help with. Thanks to technological advancements, you can access text editors as software applications installed on mobile devices and computers or as cloud services offered by different providers. Word processors were first introduced in the early 1960s as stand-alone machines similar to electric typewriters. They are better than typewriters because they allow
