当前位置:网站首页>MySQL develops small mall management system
MySQL develops small mall management system
2022-07-04 09:42:00 【Stay a little star】
One 、MySQL workbench Use
1、 open MySQL workbench The main interface of can be seen 
2、 Connect to the existing database ( For example, the local instance mysql 80)
The password when connecting is set during installation , You can only use this machine without designing a password , Fill in the pop-up interface sql After the connection information of the database, click “Test connection” Can test connection . After successful connection, skip to the following page .
Upper figure 124 Three areas are commonly used :
① Area 1“Navigator” Of “Administration” Are links to some common functions . and Schemas It's like a database , The database we will write later can be found in schemas see . The area in the figure above 1 What exists is the name of the database that has been created .
② Area 4 Displays the relevant information of the currently operated database and its tables
③ Area 2 For writing SQL, Conduct data operation, etc
3、 Create database
Click on schemas, Then right-click in the blank to select create schemas, In this way, you can create a new database , Fill in the database name and charset/collation I can click Apply To create (charset/collation Can be adjusted according to their own needs 、 I used it here utf-8 Of charset). As long as you don't report mistakes, you'll go all the way Apply That's it .
After success Navigator In the view
These files store tables separately 、 View 、 stored procedure 、 Method .
4、 Create a table
Right click tables choice create table You can create a new table
Fill in... In turn Table Name and charset、engine etc. ( frequently-used engine Yes InnoDB and MyISAM). After filling in the information of the entity, fill in the attribute information below :
PK:primary key Primary key
NN:not null Non empty
UQ:unique unique index
BIN:binary binary data ( Than text Bigger )
UN:unsigned Unsigned ( Nonnegative number )
ZF:zero fill fill 0 For example, the field content is 1 int(4), The content is displayed as 0001
AI:auto increment Self increasing
After selecting, click Apply, Automatically generate related sql Statement to create a table .
5、 Add data
stay Navigator Find the newly created table , Click the lightning sign to enter the data adding interface :
add to 、 Click... After making changes Apply You can save it to the database .
We'll use query Page to check the database we created and its saved data :
Got the data we just saved .yeah!
**** Some commonly used database operation instructions :
1、 Database operation
show databases; // List databases
use database_name // Use database_name database
create database data_name // Create a data_name The database of
drop database data_name // Delete one named data_name The database of
2、 Table operations
show tables // List all the tables
create talbe tab_name(id int(10) not null auto_increment primary key,name varchar(40),pwd varchar(40)) charset=gb2312; Create a file called tab_name New table of
drop table tab_name Delete the name tab_name Data sheet for
describe tab_name // The display name is tab_name The data structure of the table
show columns from tab_name // ditto
delete from tab_name // Will table tab_name The records in are cleared
select * from tab_name // Display table tab_name Records in
边栏推荐
- PHP personal album management system source code, realizes album classification and album grouping, as well as album image management. The database adopts Mysql to realize the login and registration f
- Log cannot be recorded after log4net is deployed to the server
- 智能网关助力提高工业数据采集和利用
- Function comparison between cs5261 and ag9310 demoboard test board | cost advantage of cs5261 replacing ange ag9310
- Global and Chinese markets of water heaters in Saudi Arabia 2022-2028: Research Report on technology, participants, trends, market size and share
- Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
- Global and Chinese markets of hemoglobin analyzers in care points 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese market of wheel hubs 2022-2028: Research Report on technology, participants, trends, market size and share
- How does idea withdraw code from remote push
- Problems encountered by scan, scanf and scanln in golang
猜你喜欢
165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version
C # use ffmpeg for audio transcoding
Hands on deep learning (32) -- fully connected convolutional neural network FCN
PHP is used to add, modify and delete movie information, which is divided into foreground management and background management. Foreground users can browse information and post messages, and backgroun
百度研发三面惨遭滑铁卢:面试官一套组合拳让我当场懵逼
2022-2028 global optical transparency industry research and trend analysis report
华为联机对战如何提升玩家匹配成功几率
Daughter love in lunch box
After unplugging the network cable, does the original TCP connection still exist?
Hands on deep learning (35) -- text preprocessing (NLP)
随机推荐
Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
How should PMP learning ideas be realized?
Rules for using init in golang
How to batch change file extensions in win10
查看CSDN个人资源下载明细
Golang defer
Basic data types in golang
Kubernetes CNI 插件之Fabric
2022-2028 global tensile strain sensor industry research and trend analysis report
2022-2028 global gasket plate heat exchanger industry research and trend analysis report
Dynamic analysis and development prospect prediction report of high purity manganese dioxide in the world and China Ⓡ 2022 ~ 2027
QTreeView+自定义Model实现示例
Modules golang
Hands on deep learning (34) -- sequence model
华为联机对战如何提升玩家匹配成功几率
Four common methods of copying object attributes (summarize the highest efficiency)
165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version
MATLAB小技巧(25)竞争神经网络与SOM神经网络
How do microservices aggregate API documents? This wave of show~
C # use ffmpeg for audio transcoding