当前位置:网站首页>SQLite SQL writing method of creating table joint primary key
SQLite SQL writing method of creating table joint primary key
2022-07-27 19:59:00 【Jingchu idlers】
Create as follows TStudent surface , Give Way id,.name For union primary key
create table TStudent(
id INT primary key not null,
name VARCHAR(50) primary key not null
);The following errors will be reported :
Error:table "TStudent" has more than one primary key
The correct writing is as follows :
create table TStudent(
id INT,
name VARCHAR(50),
primary_key(id, name)
);Union primary key , Write the last line of the statement under construction , stay primary key () In brackets , And separated by commas .
边栏推荐
猜你喜欢
随机推荐
【C#】正序、逆序、最大值、最小值和平均值
MySQL time zone problem
C243:考试排名
Normalization and standardization
VirtualBox: set shared folder
focal loss
transformers-bert
Install Talib Library under Anaconda
10.31 extended configuration of static route
C#网络应用编程,实验2:IP地址转换和域名解析练习
22年PMP考试【全真敏捷试题】
Systemservice (system service)
Togglebutton (button switch)
GridView (implement table display icon)
Object常用方法学习【clone和equals】
VLAN test 2021.1.14
Oracle XE版安装与用户操作
C#求完全数,输出水仙花以及类的使用
What's new in helix QAC 2022.2, the ace code static testing tool (1)
函数总结




![[basic knowledge of deep learning - 42] detailed explanation of logistic regression](/img/74/d7d1562ada4671864961721b9a1baf.png)




