当前位置:网站首页>DDL basic operation
DDL basic operation
2022-07-03 01:51:00 【Xu Feng &】
title :
(1) Create database , Delete database , View the database and all tables in the database , Select the database table and select all
(2) Create database tables
One , database
1, Create database
create database [if not exists] database-name
// Brackets indicate whether to add or not 2, Delete database
drop database database_name3, View the database and all tables in the database
// view the database
show database
// View all tables in the current database
show tables4, Select database
use databasTwo , Create database tables
create table table_name(
column_name data_type[not null][default default_value][auto_increment][],
...
[primary key(pk_name),]
[foreign key(fk_name) references referenced_table_name(ref_pk_name)]
)
/* Syntax description
table_name: Table name
column_name: Field name
data_type: Field data type
default_value: The default value is
auto_increment: Primary key auto growth
pk_name: The primary key name in the current table
fk_name: Key names in the current table
referenced_table_name: The application shows that ( Primary key name )
ref_pk_name: The name of the main key of the applied table */
边栏推荐
- Problems encountered in small program development of dark horse shopping mall
- Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance o
- LabVIEW安装第三方VISA软件后NI VISA失效
- [shutter] animation animation (animatedbuilder animation use process | create animation controller | create animation | create components for animation | associate animation with components | animatio
- Virtual list
- Caused by: com. fasterxml. jackson. databind. exc.MismatchedInputException: Cannot construct instance o
- 【Camera专题】OTP数据如何保存在自定义节点中
- Qtablewidget lazy load remaining memory, no card!
- Analysis, use and extension of open source API gateway apisex
- In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?
猜你喜欢

7-25 read numbers (loop switch)

Installation and use of serial port packet capturing / cutting tool

Certaines fonctionnalités du développement d'applets

Performance test | script template sorting, tool sorting and result analysis

电信客户流失预测挑战赛

In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?
![[Appendix 6 Application of reflection] Application of reflection: dynamic agent](/img/e7/0ee42902b178b13e9a41385267e7b6.jpg)
[Appendix 6 Application of reflection] Application of reflection: dynamic agent

Processing of tree structure data

Huakaiyun (Zhiyin) | virtual host: what is a virtual host
![[data mining] task 4:20newsgroups clustering](/img/76/af1d1338c468ec4825fe12816b84ff.png)
[data mining] task 4:20newsgroups clustering
随机推荐
Where is the future of test engineers? Confused to see
Why is it not recommended to use BeanUtils in production?
【数据挖掘】任务3:决策树分类
One of the C language practical projects is greedy snake
[leetcode] 797 and 1189 (basis of graph theory)
Three core issues of concurrent programming - "deep understanding of high concurrent programming"
Telecom Customer Churn Prediction challenge
Why can't the start method be called repeatedly? But the run method can?
Network security - cracking system passwords
Smart management of Green Cities: Digital twin underground integrated pipe gallery platform
Niuniu's ball guessing game (dynamic planning + prefix influence)
[keil5 debugging] debug is stuck in reset_ Handler solution
[data mining] task 2: mimic-iii data processing of medical database
【数据挖掘】任务1:距离计算
【Camera专题】HAL层-addChannel和startChannel简析
His experience in choosing a startup company or a big Internet company may give you some inspiration
深度(穿透)选择器 ::v-deep/deep/及 > > >
The testing process that software testers should know
Comment le chef de file gère - t - il l'équipe en cas d'épidémie? Contributions communautaires
[camera topic] how to save OTP data in user-defined nodes