当前位置:网站首页>数据库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)
)
-------------------------------------------/ 建表----------------------------------------------------
边栏推荐
- Find the combination number acwing 889 01 sequence meeting conditions
- 2.Oracle-数据文件的添加及管理
- [leetcode] day95 effective Sudoku & matrix zeroing
- 博弈论 AcWing 893. 集合-Nim游戏
- Chinese remainder theorem acwing 204 Strange way of expressing integers
- Relevant information of National Natural Science Foundation of China
- Time is fast, please do more meaningful things
- How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
- What's wrong with this paragraph that doesn't work? (unresolved)
- Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
猜你喜欢

P2575 master fight

20220213-CTF MISC-a_ good_ Idea (use of stegsolve tool) -2017_ Dating_ in_ Singapore

Game theory acwing 892 Steps Nim game

LeetCode-54

2. Addition and management of Oracle data files

Chapter 6 relational database theory
![[Gaode map POI stepping pit] amap Placesearch cannot be used](/img/4c/55586ffcc2267c477a4532ab51a0c1.png)
[Gaode map POI stepping pit] amap Placesearch cannot be used

MySQL advanced part 2: optimizing SQL steps

4.Oracle-重做日志文件管理

求组合数 AcWing 888. 求组合数 IV
随机推荐
Redis-02.Redis命令
[moviepy] unable to find a solution for exe
One question per day 1020 Number of enclaves
阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
H5 module suspension drag effect
ollvm编译出现的问题纪录
5. Oracle TABLESPACE
Modnet matting model reproduction
1. Create Oracle database manually
VLAN experiment
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis
Record of problems in ollvm compilation
Genesis builds a new generation of credit system
Adg5412fbruz-rl7 applies dual power analog switch and multiplexer IC
Leetcode dynamic programming
ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC
MPLS experiment
中国剩余定理 AcWing 204. 表达整数的奇怪方式
Leetcode backtracking method
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations