Hello
Thanks for the answer.
I know I'm not using the latest versions.
I'm trying to fix this
CREATE TABLE code for table 'suj_gen_t_spe_sp' (HeidiSQL version 12)
CREATE TABLE `suj_gen_t_spe_sp` (
`SP_ID` INT(11) NOT NULL AUTO_INCREMENT,
`SP_EXA_REF` INT(11) NULL DEFAULT NULL,
`SP_COD` CHAR(15) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`SP_LIB_LG` CHAR(250) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`SP_LIB_CRT` CHAR(25) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`SP_MAJ` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`SP_ID`) USING BTREE,
UNIQUE INDEX `SP_EXA_REF_SP_COD` (`SP_EXA_REF`, `SP_COD`) USING BTREE,
INDEX `SP_LIB_LG` (`SP_LIB_LG`) USING BTREE,
CONSTRAINT `suj_gen_t_spe_sp_ibfk_1` FOREIGN KEY (`SP_EXA_REF`) REFERENCES `suj_gen_t_exa_ex` (`EX_ID`) ON UPDATE RESTRICT ON DELETE RESTRICT
)
COMMENT='Table spécialités'
COLLATE='utf8_general_ci'
ENGINE=InnoDB
ROW_FORMAT=COMPACT
AUTO_INCREMENT=580
;
TABLE CREATION Table HeidiSQL version 10
CREATE TABLE `suj_gen_t_spe_sp` (
`SP_ID` INT(11) NOT NULL AUTO_INCREMENT,
`SP_EXA_REF` INT(11) NULL DEFAULT NULL,
`SP_COD` CHAR(15) NULL DEFAULT NULL,
`SP_LIB_LG` CHAR(250) NULL DEFAULT NULL,
`SP_LIB_CRT` CHAR(25) NULL DEFAULT NULL,
`SP_MAJ` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`SP_ID`),
UNIQUE INDEX `SP_EXA_REF_SP_COD` (`SP_EXA_REF`, `SP_COD`),
INDEX `SP_LIB_LG` (`SP_LIB_LG`),
CONSTRAINT `suj_gen_t_spe_sp_ibfk_1` FOREIGN KEY (`SP_EXA_REF`) REFERENCES `suj_gen_t_exa_ex` (`EX_ID`)
)
COMMENT='Table spécialités'
COLLATE='utf8_general_ci'
ENGINE=InnoDB
ROW_FORMAT=COMPACT
AUTO_INCREMENT=580
;
we notice that the comment is not written in the same way
Another exemple, using procédure
CREATE DEFINER=`root`@`localhost` PROCEDURE `SUJ_0_P_T_JOURNAL_INSERT`(
IN `p_txt` TEXT
)
LANGUAGE SQL
NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY DEFINER
COMMENT ''
BEGIN
INSERT INTO suj_0_t_journal_j
(j_txt)
VALUES (p_txt)
;
END
Heidsql version 12
CALL SUJ_0_P_T_JOURNAL_INSERT('école');
/ Avertissement: (1366) Incorrect string value: '\xE9cole' for column 'p_txt' at row 1 /
Insert an empty line
Hedisql version 10
CALL SUJ_0_P_T_JOURNAL_INSERT('école');
no avertissement
insert "école" line