“entri duplikat” Kode Jawaban

entri duplikat

# USE AUTO_INCREMENT
AUTO_INCREMENT
Undefined

entri duplikat

drop table And id column make auto increment the import data 
Blushing Baby

entri duplikat

The main reason why the error has been generated is because there is already an existing value of 1 for the column ID in which you define it as PRIMARY KEY (values are unique) in the table you are inserting.

Why not set the column ID as AUTO_INCREMENT?

CREATE  TABLE IF NOT EXISTS `PROGETTO`.`UFFICIO-INFORMAZIONI` (
  `ID` INT(11) NOT NULL AUTO_INCREMENT,
  `viale` VARCHAR(45) NULL ,
   .....
and when you are inserting record, you can now skip the column ID

INSERT INTO `PROGETTO`.`UFFICIO-INFORMAZIONI` (`viale`, `num_civico`, ...) 
VALUES ('Viale Cogel ', '120', ...)
Shadow

Jawaban yang mirip dengan “entri duplikat”

Pertanyaan yang mirip dengan “entri duplikat”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya