当前位置:网站首页>Why is the primary key matching setting in MySQL showing that I am wrong?
Why is the primary key matching setting in MySQL showing that I am wrong?
2022-04-21 07:53:00 【CSDN Q & A】
create table xs(
-> uid int,
-> upwd int,
-> uname varchar,
-> primary key(uid,upwd)
-> );
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
primary key(uid,upwd)
)' at line 7
Why? mysql It is set to match the primary key, which shows that I am wrong ?
Take the answer :
VARCHAR The number of characters must be specified when using
版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204141541466573.html
边栏推荐
- MySQL5. 7 installation and operation manual (centos7)
- 343. Find the product of decomposed integers and maximize integer break
- Bluetooth Profile Specification之(AVRCP篇)5.1AVCTP的连接和释放
- 浏览器跨域问题小结
- DeprecationWarning: NewId() is deprecated
- Record the problems and solutions encountered in using fastjson message converter
- [question 31] create two identical pets
- Base64 Encoding
- 高可用系统设计
- 瑞萨IDE:CS+ for CC进行BootLoader升级时开发环境配置
猜你喜欢
![[Niuke brush question 18] find the longest common substring in two strings a and B](/img/eb/d86b667deca3890259fac999324cd4.png)
[Niuke brush question 18] find the longest common substring in two strings a and B

Flutter environment construction and other foundations

Bluetooth Profile Specification之(AVRCP篇)5.1AVCTP的连接和释放

第五站孔孟之乡-----------走迷宫之最短路径

Axure产品原型工具使用笔记

When deploying. Net core on Linux platform to access SQL Server 2008 R2, it prompts the connection timeout exception

The fifth stop is the hometown of Confucius and Mencius ------- the shortest path to the maze
![[question 31] create two identical pets](/img/3a/de5321bddd8fb24765a532a88d6809.png)
[question 31] create two identical pets

Gateway and distributed ID

服务器部署svn环境
随机推荐
Zephyr物联网操作系统专栏汇总
Text Templates
fiddler调换字体后界面缺少 恢复
文件打包下载
Leetcode topic -- 120 Minimum length sum of triangles, simple DP
Spawning Processes and Exec‘ing Processes
Dynamically generate three-level menu
VS2019官方的免费打印控件
OmniPlan tool user manual
Self made webserver from scratch (XV) -- the log base part is completed, and the practical widget double-buffering optimizes the asynchronous write performance
Use case diagram of umlet instructions
oracle 管理之《sql命令》
Solution to red flag with @ Autowired annotation in idea
STM32系统和自定义bootloader的实现和应用
delphi的json类:SuperObject,以及简单用法jsonHelper
leetcode 27. Removing Elements
laravel execl导入时间变数字
Zephyr IOT operating system column summary
leetcode 142. Circular linked list II
asp. Net JS to realize dynamic addition and file upload