当前位置:网站首页>数据库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)
)
-------------------------------------------/ 建表----------------------------------------------------
边栏推荐
- 5. Oracle TABLESPACE
- What is socket? Basic introduction to socket
- 5. Oracle tablespace
- 博弈论 AcWing 893. 集合-Nim游戏
- 如何正确在CSDN问答进行提问
- Install opencv -- CONDA to establish a virtual environment and add the kernel of this environment in jupyter
- Game theory acwing 891 Nim games
- Leetcode stack related
- 4. Object mapping Mapster
- Daily question 1189 Maximum number of "balloons"
猜你喜欢

5.Oracle-錶空間

Redis-01. First meet redis

Bit of MySQL_ OR、BIT_ Count function

'mongoexport 'is not an internal or external command, nor is it a runnable program or batch file.

MySQL advanced part 2: SQL optimization

高斯消元 AcWing 884. 高斯消元解异或线性方程组

博弈论 AcWing 894. 拆分-Nim游戏

栈 AcWing 3302. 表达式求值

What is socket? Basic introduction to socket

中国剩余定理 AcWing 204. 表达整数的奇怪方式
随机推荐
Redis-01.初识Redis
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
博弈论 AcWing 892. 台阶-Nim游戏
时间很快,请多做有意义的事情
MySQL advanced part 2: optimizing SQL steps
Paper reading report
LeetCode-61
C - XOR to all (binary topic)
Adg5412fbruz-rl7 applies dual power analog switch and multiplexer IC
11-gorm-v2-03-basic query
ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC
H5 模块悬浮拖动效果
Chinese remainder theorem acwing 204 Strange way of expressing integers
[moviepy] unable to find a solution for exe
Chapter 6 relational database theory
P2575 master fight
Redis-02. Redis command
Daily question 1189 Maximum number of "balloons"
Vant weave swipecell sets multiple buttons
Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022