gpt4 book ai didi

mysql - 我的 SQL 代码有什么问题?它显示错误代码 1064

转载 作者:太空宇宙 更新时间:2023-11-03 11:28:09 24 4
gpt4 key购买 nike

<分区>

我试图找出问题所在。但不幸的是我不能。 INSERT TABLE 行中的错误显示为=You have an error in your SQL syntax;检查与您的 MySQL 服务器版本相对应的手册,以了解在第 1 行的“附近使用的正确语法以及在第 21 行为列“Course_Credit”截断的数据。TIA。

CREATE DATABASE testDB;

USE testDB;

CREATE TABLE COURSE (
COURSE_ID VARCHAR(255),
COURSE_TITLE VARCHAR(255),
COURSE_CREDIT DOUBLE(255, 2)
);

INSERT INTO COURSE (COURSE_ID, COURSE_TITLE, COURSE_CREDIT)
VALUES ('CSE-101', 'Introduction to Computer Systems', '1.00'),
('CSE-102', 'Introduction to Computer Systems (Sessional)', '1.50'),
('EEE-105', 'Introduction to Electrical Engineering', '2.00'),
('EEE-106', 'Introduction to Electrical Engineering (Sessional)', '1.50'),
('ME-100', 'Mechanical Engineering Drawing-I', '1.50'),
('ME-101', 'Mechanical Engineering', '2.00'),
('ME-102', 'Mechanical Engineering (Sessional)', '1.50'),
('MATH-101', 'Differential Calculas And Co-ordinate Geometry', '3.00'),
('PHY-101', 'Physics', '3.00'),
('PHY-102', 'Physics (Sessional)', '1.50'),
('CSE-201', 'Structured Programming Language', '3.00'),
('CSE-202', 'Structured Programming Language (Sessional)', '1.50'),
('CSE-203', 'Discrete Mathematics', '3.00'),
('MATH-201', 'Integral Calculus, Differential Equations and Series', '3.00'),
('CHEM-201', 'Chemistry', '3.00'),
('CHEM-202', 'Chemistry (Sessional)', '1.50'),
('ENG-201', 'English', '2.00'),
('ENG-202', 'Communication in English (Practice)', '1.00'),
('SS-201', 'Government and Public Administration', '2.00'),
('CSE-301', 'Object Oriented Programming Language', '3.00'),
('CSE-302', 'Object Oriented Programming Language (Sessional)', '1,50'),
('CSE-303', 'Data Structures', '3.00'),
('CSE-304', 'Data Structures', '1.50'),
('MATH-301', 'Complex Variable and Statistics', '3.00');

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com