当前位置:网站首页>Database foundation
Database foundation
2022-07-26 07:35:00 【Take you to learn code】
Catalog
DDL Basic statement of database operation
Database operation

Those in square brackets are optional .
if not exist If it doesn't exist , Then establish a database .
Input show databases; Regret shows a little 4 A database , These are all mysql The database that comes with it .

Suppose you have created a database , Want to create another database with the same name , So it's a mistake .

If you don't want this to happen , Then you can use the following code :
create database if not exists itcast;

Input statement before quick query : Directly press the up and down keys to view
If you forget your current database , Direct input select database();
data type
value type

score double(4,1) What is shown here is that the fraction is at most four digit precision (100.0 There are four bits ), The maximum scale is 1 position ( That is, at most one decimal )
String type

char Performance ratio of varchar It is better to .

Table operations

First of all use Specific databases , To be able to show Out of the right tables;


Follow the above naming method , We can set up the corresponding table
Table operations —— add rows

Table operations —— modify


边栏推荐
- Open source management system based on ThinkPHP
- DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network
- HOT100 hash
- 总结软件测试岗的那些常见高频面试题
- Kdd2022 | uncover the mystery of Kwai short video recommendation re ranking, and recommend the new SOTA
- Devaxpress.xtraeditors.datanavigator usage
- 在线问题反馈模块实战(十四):实现在线答疑功能
- PXE efficient batch network installation
- [200 opencv routines] 231. Gray level co-occurrence matrix (GLCM) for feature description
- What is bloom filter in redis series?
猜你喜欢

Web page basic label

Installation of Baidu flying paste deep learning framework tutorial in Anaconda

OAuth2.0系列博客教程汇总

ARIMA model for time series analysis and prediction

Network Trimming: A Data-Driven Neuron Pruning Approach towards Efficient Deep Architectures论文翻译/笔记

排序:归并排序和快速排序

How to ensure the double write consistency between cache and database?

时间序列分析预测实战之ARIMA模型

Simulation of transfer function step response output of botu PLC first-order lag system (SCL)
![[C language] do you really know printf? (printf is typically error prone, and collection is strongly recommended)](/img/59/cf43b7dd16c203b4f31c1591615955.jpg)
[C language] do you really know printf? (printf is typically error prone, and collection is strongly recommended)
随机推荐
KDD2022 | 揭秘快手短视频推荐Re-ranking之谜,相关推荐新SOTA
Fang Wenshan, Jay Chou's best partner, will officially announce "Hualiu yuancosmos" on July 25
2022.7.22DAY612
PR subtitle production
Apache dolphin scheduler 2.x nanny level source code analysis, China Mobile engineers uncover the whole process of service scheduling and start
数据库基础
漂洋过海来看你
Open source management system based on ThinkPHP
System architecture & microservices
Taishan Office Technology Lecture: how to calculate page blank (margin)
2021全球机器学习大会演讲稿
Hcip--- MPLS detailed explanation and BGP route filtering
Parameterization of JMeter performance test using CSV file
MMOE多目标建模
Shardingsphere data slicing
Configure flask
Machine learning related competition website
排序:归并排序和快速排序
Come across the sea to see you
Oauth2.0 series blog tutorial summary