Some help Please, busy with this for a database table:
CREATE TABLE a106_pipe (
Item_ID int GENERATED ALWAYS AS IDENTITY not null primary key,
"NB" INTEGER NOT NULL (25),
"O/D" INTEGER (25),
"SCH 40" INTEGER (25),
"SCH 80" INTEGER (30),
"SCH 160" INTEGER default 0,
PRIMARY KEY (ITEM_ID)
);
insert into a106_pipe ('6','10.3','1.73','2.41','0');
insert into a106_pipe ('8','13.7','2.24','3.02','0');
insert into a106_pipe ('10','17.1','2.31','3.20','0');
Getting this error:
[Warning, Error code 1,064, SQLState 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 'IDENTITY not null primary key,
"NB" INTEGER not null (25),
"O/D" INTEGER (25),
' at line 2
[Exception, Error code 1,064, SQLState 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 'IDENTITY not null primary key,
"NB" INTEGER not null (25),
"O/D" INTEGER (25),
' at line 2
Line 1, column 1
[Warning, Error code 1,064, SQLState 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 ''6','10.3','1.73','2.41','0')' at line 1
[Exception, Error code 1,064, SQLState 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 ''6','10.3','1.73','2.41','0')' at line 1
Line 10, column 1
[Warning, Error code 1,064, SQLState 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 ''8','13.7','2.24','3.02','0')' at line 1
[Exception, Error code 1,064, SQLState 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 ''8','13.7','2.24','3.02','0')' at line 1
Line 11, column 1
[Warning, Error code 1,064, SQLState 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 ''10','17.1','2.31','3.20','0')' at line 1
[Exception, Error code 1,064, SQLState 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 ''10','17.1','2.31','3.20','0')' at line 1
Line 12, column 1
Execution finished after 0.13 s, 4 errors occurred.