当前位置:网站首页>数据库Mysql全部
数据库Mysql全部
2022-07-05 06:23:00 【LZYmarks】
mysql 数据类型对应的Java类型
--------------------------------------------报错----------------------------------------------------
数据库创表的时候多了一个 逗号
CREATE TABLE `login` (
字段,字段,字段,字段, <--------- 就是这个逗号
) ENGINE=InnoDB DEFAULT CHARSET=utf8
-------------------------------------------/ 报错----------------------------------------------------
--------------------------------------------建表----------------------------------------------------
不会创建自增和唯一索引
CREATE TABLE usertable(
user_id INT(30) PRIMARY KEY AUTO_INCREMENT,
user_name VARCHAR(200) UNIQUE NOT NULL,
NAME VARCHAR(200) NOT NULL,
document_type VARCHAR(200) NOT NULL,
document_num INT(18) NOT NULL,
phone_num INT(16) UNIQUE NOT NULL,
email VARCHAR(200) NOT NULL,
login_password VARCHAR(200) NOT NULL,
pay_password INT(6) NOT NULL,
user_state INT(1)
)
-------------------------------------------/ 建表----------------------------------------------------
边栏推荐
- Record of problems in ollvm compilation
- Genesis builds a new generation of credit system
- Applicable to Net free barcode API [off] - free barcode API for NET [closed]
- One question per day 1020 Number of enclaves
- 什么是套接字?Socket基本介绍
- Usage scenarios of golang context
- Redis-02.Redis命令
- Vscode creates its own code template
- 7.Oracle-表结构
- Niu Mei's math problems
猜你喜欢
Client use of Argo CD installation
Record of problems in ollvm compilation
Find the combination number acwing 889 01 sequence meeting conditions
Game theory acwing 894 Split Nim game
3.Oracle-控制文件的管理
Genesis builds a new generation of credit system
What is socket? Basic introduction to socket
There are three kinds of SQL connections: internal connection, external connection and cross connection
求组合数 AcWing 887. 求组合数 III
Vant weave swipecell sets multiple buttons
随机推荐
微信小程序路由再次跳转不触发onload
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
One question per day 1020 Number of enclaves
Day 2 document
Redis-01. First meet redis
How to correctly ask questions in CSDN Q & A
Leetcode dynamic programming
2.Oracle-数据文件的添加及管理
Vscode creates its own code template
Knapsack problem acwing 9 Group knapsack problem
MySQL advanced part 2: the use of indexes
Adg5412fbruz-rl7 applies dual power analog switch and multiplexer IC
P2575 master fight
Dataframe (1): introduction and creation of dataframe
MQClientException: No route info of this topic: type_ topic
Getting started with typescript
Idea debug failed
Winter messenger 2
[QT] QT multithreading development qthread
微信小程序路由再次跳轉不觸發onload