当前位置:网站首页>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 */
边栏推荐
- [data mining] task 3: decision tree classification
- [shutter] animation animation (basic process of shutter animation | create animation controller | create animation | set value listener | set state listener | use animation values in layout | animatio
- 网络安全-破解系统密码
- Network security OpenVAS
- In the face of difficult SQL requirements, HQL is not afraid
- Common English Vocabulary
- Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance o
- A simple tool for analyzing fgui dependencies
- Huakaiyun | virtual host: IP, subnet mask, gateway, default gateway
- One of the C language practical projects is greedy snake
猜你喜欢

NCTF 2018 part Title WP (1)

Learn the five skills you need to master in cloud computing application development
![[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait](/img/c6/9aee30cb935b203c7c62b12c822085.jpg)
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait

The technology boss is ready, and the topic of position C is up to you

【Camera专题】手把手撸一份驱动 到 点亮Camera
![[data mining] task 2: mimic-iii data processing of medical database](/img/ad/4e7b253d60b29351e3ef252ee5230f.png)
[data mining] task 2: mimic-iii data processing of medical database

网络安全-漏洞与木马

Smart management of Green Cities: Digital twin underground integrated pipe gallery platform

Three core issues of concurrent programming - "deep understanding of high concurrent programming"

Qtablewidget lazy load remaining memory, no card!
随机推荐
串口抓包/截断工具的安装及使用详解
Virtual list
GDB 在嵌入式中的相关概念
Network security ACL access control list
Processing of tree structure data
Network security OpenVAS
High-Resolution Network (篇一):原理刨析
Network security - dynamic routing protocol rip
STM32 - switch of relay control lamp
查询商品案例-页面渲染数据
[data mining] task 2: mimic-iii data processing of medical database
View of MySQL
简易分析fgui依赖关系工具
Network security - cracking system passwords
STM32 - GPIO input / output mode
Related concepts of GDB in embedded system
NCTF 2018 part Title WP (1)
QTableWidget懒加载剩内存,不卡!
Learn the five skills you need to master in cloud computing application development
In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?