<legend id='adGLw'><style id='adGLw'><dir id='adGLw'><q id='adGLw'></q></dir></style></legend>
      <bdo id='adGLw'></bdo><ul id='adGLw'></ul>

    <small id='adGLw'></small><noframes id='adGLw'>

      1. <i id='adGLw'><tr id='adGLw'><dt id='adGLw'><q id='adGLw'><span id='adGLw'><b id='adGLw'><form id='adGLw'><ins id='adGLw'></ins><ul id='adGLw'></ul><sub id='adGLw'></sub></form><legend id='adGLw'></legend><bdo id='adGLw'><pre id='adGLw'><center id='adGLw'></center></pre></bdo></b><th id='adGLw'></th></span></q></dt></tr></i><div id='adGLw'><tfoot id='adGLw'></tfoot><dl id='adGLw'><fieldset id='adGLw'></fieldset></dl></div>
      2. <tfoot id='adGLw'></tfoot>

      3. 错误代码 1292 不正确的日期值 mysql

        时间:2023-06-26

          <legend id='W3Iha'><style id='W3Iha'><dir id='W3Iha'><q id='W3Iha'></q></dir></style></legend>

            <bdo id='W3Iha'></bdo><ul id='W3Iha'></ul>
          • <tfoot id='W3Iha'></tfoot>
            <i id='W3Iha'><tr id='W3Iha'><dt id='W3Iha'><q id='W3Iha'><span id='W3Iha'><b id='W3Iha'><form id='W3Iha'><ins id='W3Iha'></ins><ul id='W3Iha'></ul><sub id='W3Iha'></sub></form><legend id='W3Iha'></legend><bdo id='W3Iha'><pre id='W3Iha'><center id='W3Iha'></center></pre></bdo></b><th id='W3Iha'></th></span></q></dt></tr></i><div id='W3Iha'><tfoot id='W3Iha'></tfoot><dl id='W3Iha'><fieldset id='W3Iha'></fieldset></dl></div>
              <tbody id='W3Iha'></tbody>

              1. <small id='W3Iha'></small><noframes id='W3Iha'>

                  本文介绍了错误代码 1292 不正确的日期值 mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一张桌子

                  `CREATE  TABLE IF NOT EXISTS `PROGETTO`.`ALBERGO` (
                  
                  `ID` INT(11) NOT NULL COMMENT 'identificativo dell\' albergo' ,
                  `nome` VARCHAR(45) NULL COMMENT 'Il nome dell\'albergo' ,
                  `viale` VARCHAR(45) NULL COMMENT 'Il viale in cui si trova  ' ,
                  `num_civico` VARCHAR(5) NULL COMMENT 'Il numero civico che gli appartiene' ,
                  `data_apertura` DATE NULL COMMENT 'Data di inizio apertura (inizio stagione)' ,
                  `data_chiusura` DATE NULL COMMENT 'Data di chiusura (fine stagione)' ,
                  `orario_apertura` TIME NULL COMMENT 'Orario di apertura' ,
                  `orario_chiusura` TIME NULL COMMENT 'Orario di chiusura' ,
                  `posti_liberi` INT(11) NULL COMMENT 'Disponiblità posti liberi ' ,
                  `costo_intero` FLOAT NULL COMMENT 'Costo del prezzo intero' ,
                  `costo_ridotto` FLOAT NULL COMMENT 'Costo del prezzo ridotto' ,
                  `stelle` INT(11) NULL COMMENT 'Classificazione in base al criterio delle stelle' ,
                  `telefono` VARCHAR(15) NULL COMMENT 'Recapito telefonico' ,
                  `mail` VARCHAR(100) NULL COMMENT 'Recapito e-mail' ,
                  `web` VARCHAR(100) NULL COMMENT 'Sito Web relativo all\'ente' ,
                  'Nome-paese` VARCHAR(45) NOT NULL COMMENT 'Identificativo del paese in cui si trova l\'albergo' ,
                  `Comune` CHAR(2) NOT NULL COMMENT 'Identificativo del comune in cui si trova l\'albergo' ,
                  PRIMARY KEY (`ID`) ,
                  INDEX `Nome-paese` (`Nome-paese` ASC) ,
                  INDEX `Comune` (`Comune` ASC) ,
                  CONSTRAINT `Nome-paese`
                    FOREIGN KEY (`Nome-paese` )
                    REFERENCES `PROGETTO`.`PAESE` (`Nome-paese` )
                    ON DELETE NO ACTION
                    ON UPDATE CASCADE,
                  CONSTRAINT `Comune`
                    FOREIGN KEY (`Comune` )
                    REFERENCES `PROGETTO`.`PAESE` (`Comune` )
                    ON DELETE NO ACTION
                    ON UPDATE CASCADE)
                  ENGINE = InnoDB
                  

                  当我尝试运行此查询时:

                  When i try to run this query:

                  INSERT INTO `PROGETTO`.`ALBERGO`(`ID`, `nome`, `viale`, `num_civico`, `data_apertura`, `data_chiusura`, `orario_apertura`, `orario_chiusura`, `posti_liberi`, `costo_intero`, `costo_ridotto`, `stelle`, `telefono`, `mail`, `web`, `Nome-paese`, `Comune`) 
                  VALUES(0, 'Hotel Centrale', 'Via Passo Rolle', '74', '01-05-2012', '31-09-2012', '06:30', '24:00', 80, 50, 25, 3, '43968083', 'info@hcentrale.it', 'http://www.hcentrale.it/', 'Trento', 'TN')
                  

                  *错误代码:1292.不正确的日期值:01-05-2012"列在第 1* 行的data_apertura"

                  我要改变什么?(我试图将格式的日期从 gg/mm/yyyy 更改为 gg-mm-yyyy,但没有任何改变)

                  What have i to change? (i tried to change format's date from gg/mm/yyyy to gg-mm-yyyy, but nothing changed)

                  推荐答案

                  按以下格式插入日期 yyyy-MM-dd 示例,

                  Insert date in the following format yyyy-MM-dd example,

                  INSERT INTO `PROGETTO`.`ALBERGO`(`ID`, `nome`, `viale`, `num_civico`, `data_apertura`, `data_chiusura`, `orario_apertura`, `orario_chiusura`, `posti_liberi`, `costo_intero`, `costo_ridotto`, `stelle`, `telefono`, `mail`, `web`, `Nome-paese`, `Comune`) 
                  VALUES(0, 'Hotel Centrale', 'Via Passo Rolle', '74', '2012-05-01', '2012-09-31', '06:30', '24:00', 80, 50, 25, 3, '43968083', 'info@hcentrale.it', 'http://www.hcentrale.it/', 'Trento', 'TN')
                  

                  这篇关于错误代码 1292 不正确的日期值 mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:MySQL 配置不当的原因:不安全的使用相对路径 下一篇:SQL中二进制字符串的汉明距离

                  相关文章

                • <small id='g5CqG'></small><noframes id='g5CqG'>

                  <legend id='g5CqG'><style id='g5CqG'><dir id='g5CqG'><q id='g5CqG'></q></dir></style></legend>

                    <i id='g5CqG'><tr id='g5CqG'><dt id='g5CqG'><q id='g5CqG'><span id='g5CqG'><b id='g5CqG'><form id='g5CqG'><ins id='g5CqG'></ins><ul id='g5CqG'></ul><sub id='g5CqG'></sub></form><legend id='g5CqG'></legend><bdo id='g5CqG'><pre id='g5CqG'><center id='g5CqG'></center></pre></bdo></b><th id='g5CqG'></th></span></q></dt></tr></i><div id='g5CqG'><tfoot id='g5CqG'></tfoot><dl id='g5CqG'><fieldset id='g5CqG'></fieldset></dl></div>
                        <bdo id='g5CqG'></bdo><ul id='g5CqG'></ul>
                    1. <tfoot id='g5CqG'></tfoot>