1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| CREATE TABLE societe_bis (
IDsociete int(18) NOT NULL PRIMARY KEY,
InfosSoc2 varchar(50) NOT NULL
) ENGINE = MyISAM ;
INSERT INTO societe_bis (IDsociete, InfosSoc2)
SELECT IDsociete, InfosSoc2
FROM societe ;
CREATE FULLTEXT INDEX ft_soc_InfosSoc2 ON societe_bis (InfosSoc2) ;
CREATE VIEW v_societe
AS
SELECT S.IDsociete,
S.IDcabinet,
S.RaisonSociale,
S.IDtype,
S.Statut,
S.adresse1,
S.adresse2,
S.codepostal,
S.Ville,
S.Pays,
S.telephone,
S.fax,
S.site,
S.mail,
S.info1,
S.info2,
S.info3,
S.DateCrea,
S.UserCrea,
S.DateModif,
S.UserModif,
S.raison2,
S.adresse3,
S2.InfosSoc2
FROM societe S
INNER JOIN societe_bis S2 on S.IDsociete = S2.IDsociete ; |