X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Ffusionax%2FEntreprises.sql;h=63de3bb7857b3f7718d1f3b8d5a0cedc452674a2;hb=ddc4c64239397960c7c95aad9153009b986038bb;hp=a14ccd12948adea6d2a05d2892aba32df93f0e20;hpb=b159e33797ccfb84478dd2dbde700c7d1867539f;p=platal.git diff --git a/modules/fusionax/Entreprises.sql b/modules/fusionax/Entreprises.sql index a14ccd1..63de3bb 100644 --- a/modules/fusionax/Entreprises.sql +++ b/modules/fusionax/Entreprises.sql @@ -5,13 +5,13 @@ DROP TABLE IF EXISTS `fusionax_entreprises`; CREATE TABLE IF NOT EXISTS `fusionax_entreprises` ( `EN` CHAR(2) NOT NULL COMMENT 'Vaut toujours EN pour cette table', `Code_etab` BIGINT(10) NOT NULL COMMENT 'Code de l''établissement', - `Raison_sociale` VARCHAR(255) collate utf8_general_ci NOT NULL COMMENT 'Raison sociale de l''établissement', - `Sigle` VARCHAR(50) collate utf8_general_ci NOT NULL COMMENT 'Sigle de l''établissement', + `Raison_sociale` VARCHAR(255) NOT NULL COMMENT 'Raison sociale de l''établissement', + `Sigle` VARCHAR(50) NOT NULL COMMENT 'Sigle de l''établissement', `Date_maj` DATE NOT NULL COMMENT 'Date de mise à jour de ces informations', PRIMARY KEY(`Code_etab`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; +) ENGINE=InnoDB, CHARSET=utf8; -LOAD DATA LOCAL INFILE 'Entreprises.txt' INTO TABLE `fusionax_entreprises` FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n' +LOAD DATA LOCAL INFILE '{?}Entreprises.txt' INTO TABLE `fusionax_entreprises` FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n' (EN, Code_etab, Raison_sociale, Sigle, @Inconnu, @StringDate_maj) SET `Date_maj` = CONCAT(SUBSTRING(@StringDate_maj,7),'-',SUBSTRING(@StringDate_maj,4,2),'-',SUBSTRING(@StringDate_maj,1,2));