当前位置:网站首页>数据库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)
)
-------------------------------------------/ 建表----------------------------------------------------
边栏推荐
- Stack acwing 3302 Expression evaluation
- Find the combination number acwing 888 Find the combination number IV
- 栈 AcWing 3302. 表达式求值
- Genesis builds a new generation of credit system
- Game theory acwing 894 Split Nim game
- [learning] database: several cases of index failure
- Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
- What is socket? Basic introduction to socket
- 11-gorm-v2-03-basic query
- [moviepy] unable to find a solution for exe
猜你喜欢
What is socket? Basic introduction to socket
'mongoexport 'is not an internal or external command, nor is it a runnable program or batch file.
5. Oracle TABLESPACE
Vant weave swipecell sets multiple buttons
Simple selection sort of selection sort
Paper reading report
VLAN experiment
Genesis builds a new generation of credit system
1. Create Oracle database manually
栈 AcWing 3302. 表达式求值
随机推荐
Leetcode heap correlation
MySQL advanced part 2: optimizing SQL steps
[learning] database: several cases of index failure
NotImplementedError: Cannot convert a symbolic Tensor (yolo_boxes_0/meshgrid/Size_1:0) to a numpy ar
Genesis builds a new generation of credit system
7.Oracle-表结构
5.Oracle-表空间
2022/6/29-日报
博弈论 AcWing 893. 集合-Nim游戏
Leetcode divide and conquer / dichotomy
Game theory acwing 891 Nim games
高斯消元 AcWing 884. 高斯消元解异或线性方程组
Getting started with typescript
International Open Source firmware Foundation (osff) organization
MQClientException: No route info of this topic: type_ topic
Operator priority, one catch, no doubt
RecyclerView的应用
[Gaode map POI stepping pit] amap Placesearch cannot be used
Redis-01. First meet redis
MySQL advanced part 1: index