sách gpt4 ai đã đi

mysql - Lỗi 1064 Lỗi MySQL

In lại 作者:行者123 更新时间:2023-11-29 11:28:42 29 4
mua khóa gpt4 Nike

CREATE TABLE references ( hamsterId MEDIUMINT(9), id MEDIUMINT(9), complete BINARY(1));

我一直在运行错误消息,我尝试了很多可能性,但没有得到答案,谢谢您的帮助!BINARY(1) 是否正确,仅允许 1 或 0 津贴。顺便说一句,这是错误消息:

ERROR 1064 (42000): 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 'references ( hamsterId MEDIUMINT(9), id MEDIUMINT(9), complete BINARY(1))' at line 1

1 Câu trả lời

使用 backtics 作为保留名称 REFERENCES 是 mysql 的反转词,请参阅 https://dev.mysql.com/doc/refman/5.7/en/keywords.html

 CREATE TABLE `references` ( hamsterId MEDIUMINT(9), id MEDIUMINT(9), complete BINARY(1));

关于mysql - 错误 1064 MySQL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37774138/

29 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com