
{"id":673,"date":"2009-07-17T16:54:27","date_gmt":"2009-07-17T15:54:27","guid":{"rendered":"http:\/\/dasini.net\/blog\/?p=673"},"modified":"2009-07-29T09:25:59","modified_gmt":"2009-07-29T08:25:59","slug":"utiliser-xml-avec-mysql-5-1-part-15","status":"publish","type":"post","link":"https:\/\/dasini.net\/blog\/2009\/07\/17\/utiliser-xml-avec-mysql-5-1-part-15\/","title":{"rendered":"Utiliser XML avec MySQL 5.1 (part 1\/5)"},"content":{"rendered":"<p><!-- \t\t@page { margin: 2cm } \t\tP { margin-bottom: 0.21cm } \t\tH1 { margin-bottom: 0.21cm } \t\tH1.western { font-family: \"Arial\", sans-serif; font-size: 16pt } \t\tH1.cjk { font-family: \"MS Mincho\"; font-size: 16pt } \t\tH1.ctl { font-family: \"Tahoma\"; font-size: 16pt } \t\tH2 { margin-bottom: 0.21cm } \t\tH2.western { font-family: \"Arial\", sans-serif; font-size: 14pt; font-style: italic } \t\tH2.cjk { font-family: \"MS Mincho\"; font-size: 14pt; font-style: italic } \t\tH2.ctl { font-family: \"Tahoma\"; font-size: 14pt; font-style: italic } \t\tA:link { so-language: zxx } --><\/p>\n<p>MySQL avec son mod\u00e8le relationnel et XML avec son approche hi\u00e9rarchique ont en commun la vocation d&rsquo;organiser et de structurer des ensembles de donn\u00e9es.<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">En regardant de plus pr\u00e8s, ces technologies peuvent offrir des solutions compl\u00e9mentaires :<\/p>\n<ul>\n<li>\n<p style=\"margin-bottom: 0cm;\">MySQL s&rsquo;adapte \u00e0 merveille \u00e0 la \tgestion de syst\u00e8mes d&rsquo;informations \u00e9ventuellement lourds et \tcomplexes,<\/p>\n<\/li>\n<li>\n<p style=\"margin-bottom: 0cm;\">XML a su devenir un langage \tuniversel permettant aux applications de communiquer et d&rsquo;\u00e9changer \tdes informations.<\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-bottom: 0cm;\">Leur compl\u00e9mentarit\u00e9 appara\u00eet alors \u00e9vidente : XML rend possible l&rsquo;exploitation et le partage des informations contenues dans MySQL par des applications distantes.<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<h2>G\u00e9n\u00e9rer du XML avec les programmes clients mysql et mysqldump<\/h2>\n<p style=\"margin-bottom: 0cm;\"><em>La version de MySQL utilis\u00e9e pour cette article est la 5.1.22.<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">G\u00e9n\u00e9rer du XML avec MySQL est tr\u00e8s simple. La premi\u00e8re possibilit\u00e9 est d&rsquo;utiliser le client texte mysql avec l&rsquo;option <em>xml<\/em> ou <em>X<\/em>. Un fois connect\u00e9 au serveur MySQL, les r\u00e9sultats des commandes sont sortis sous format XML comme ont peut le voir :<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<address style=\"margin-bottom: 0cm;\"><span style=\"text-decoration: underline;\">G\u00e9n\u00e9rer du XML en mode console<\/span><\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<p><!-- --><\/p>\n<p><!-- --><\/p>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">shell&gt; mysql -u daz -p &#8211;xml<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">mysql&gt; SHOW SCHEMAS ; \/*Liste de tous les sch\u00e9mas (databases)*\/<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;?xml version=\u00a0\u00bb1.0&Prime;?&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;resultset statement=\u00a0\u00bbshow schemas\u00a0\u00bb xmlns:xsi=\u00a0\u00bbhttp:\/\/www.w3.org\/2001\/<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">XMLSchema-instance\u00a0\u00bb&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbDatabase\u00a0\u00bb&gt;information_schema&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbDatabase\u00a0\u00bb&gt;world&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbDatabase\u00a0\u00bb&gt;xml&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/resultset&gt;<\/address>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\">\n<p style=\"margin-bottom: 0cm; text-decoration: none;\">\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">mysql&gt; USE xml \/*connexion au sch\u00e9ma qui se nomme xml *\/<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">Database changed<\/address>\n<p><!-- --><\/p>\n<p><!-- --><\/p>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">mysql&gt; SHOW TABLES ; \/*Liste de toutes les tables du sch\u00e9ma xml*\/<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;?xml version=\u00a0\u00bb1.0&Prime;?&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;resultset statement=\u00a0\u00bbSHOW TABLES\u00a0\u00bb xmlns:xsi=\u00a0\u00bbhttp:\/\/www.w3.org\/2001\/<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">XMLSchema-instance\u00a0\u00bb&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbTables_in_xml\u00a0\u00bb&gt;rss&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/resultset&gt;<\/address>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">L&rsquo;exemple suivant nous montre que le r\u00e9sultat d&rsquo;une requ\u00eate peut \u00eatre redirig\u00e9 vers un fichier. On peut par exemple cr\u00e9er le fichier <em>ville_fra.xml<\/em> avec le contenu de la table city du sch\u00e9ma world ou plus g\u00e9n\u00e9ralement avec le r\u00e9sultat d&rsquo;une requ\u00eate.<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<address style=\"margin-bottom: 0cm;\"><span style=\"text-decoration: underline;\">Cr\u00e9ation d&rsquo;un fichier XML avec le client texte mysql<\/span><\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<address style=\"margin-bottom: 0cm;\"><span style=\"text-decoration: none;\">shell&gt;mysql  -X -e\u00a0\u00bb SELECT * FROM world.city WHERE countrycode = &lsquo;fra&rsquo;;\u00a0\u00bb  &#8211;default-character-set=utf8 &gt; <\/span><span style=\"text-decoration: none;\">\/xml_file\/city_fra.xml<\/span><\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<address style=\"margin-bottom: 0cm;\"><span style=\"text-decoration: none;\"><br \/>\n<\/span><\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">shell&gt; more city_fra.xml<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;?xml version=\u00a0\u00bb1.0&Prime;?&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;resultset statement=\u00a0\u00bbSELECT * FROM world.city WHERE countrycode = &lsquo;fra'\u00a0\u00bb xmlns:xsi=\u00a0\u00bbhttp:\/\/www.w3.org\/2001\/XMLSchema-instance\u00a0\u00bb&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbID\u00a0\u00bb&gt;2974&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbName\u00a0\u00bb&gt;Paris&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbCountryCode\u00a0\u00bb&gt;FRA&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbDistrict\u00a0\u00bb&gt;\u00cele-de-France&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbPopulation\u00a0\u00bb&gt;2125246&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbID\u00a0\u00bb&gt;2975&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbName\u00a0\u00bb&gt;Marseille&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbCountryCode\u00a0\u00bb&gt;FRA&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbDistrict\u00a0\u00bb&gt;Provence-Alpes-C\u00f4te&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbPopulation\u00a0\u00bb&gt;798430&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbID\u00a0\u00bb&gt;2976&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbName\u00a0\u00bb&gt;Lyon&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&#8230;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/resultset&gt;<\/address>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">L&rsquo;autre fa\u00e7on d&rsquo;exporter du SQL dans un fichier au format <em>XML<\/em> est d&rsquo;utiliser le client texte qui permet de faire des sauvegardes (<em>dump<\/em>) <em>mysqldump<\/em>. Il devient alors possible d&rsquo;obtenir un <em>backup<\/em> , structures et donn\u00e9es, au format <em>XML<\/em> du sch\u00e9ma <em>world:<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<address style=\"margin-bottom: 0cm;\"><span style=\"text-decoration: underline;\">G\u00e9n\u00e9rer une sauvegarde au format XML<\/span><\/address>\n<address style=\"margin-bottom: 0cm;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">shell&gt; mysqldump -u daz -p &#8211;xml &#8211;default-character-set=utf8 world &gt; sauvegarde.xml<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"> <\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;?xml version=\u00a0\u00bb1.0&Prime;?&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;mysqldump xmlns:xsi=\u00a0\u00bbhttp:\/\/www.w3.org\/2001\/XMLSchema-instance\u00a0\u00bb&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;database name=\u00a0\u00bbworld\u00a0\u00bb&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;table_structure name=\u00a0\u00bbcity\u00a0\u00bb&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field Field=\u00a0\u00bbID\u00a0\u00bb Type=\u00a0\u00bbint(11)\u00a0\u00bb Null=\u00a0\u00bbNO\u00a0\u00bb Key=\u00a0\u00bbPRI\u00a0\u00bb Extra=\u00a0\u00bbauto_increment\u00a0\u00bb \/&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&#8230;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/table_structure&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;table_data name=\u00a0\u00bbcity\u00a0\u00bb&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;field name=\u00a0\u00bbID\u00a0\u00bb&gt;1&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&#8230;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/field&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/row&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/table_data&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\">&lt;\/database&gt;<\/address>\n<address style=\"margin-bottom: 0cm; text-decoration: none;\"><em>&lt;\/mysqldump&gt;<\/em><\/address>\n<p style=\"margin-bottom: 0cm; text-decoration: none;\">\n<p><em>(<a title=\"Utiliser XML avec MySQL 5.1 (part 2\/5)\" href=\"http:\/\/dasini.net\/blog\/2009\/07\/29\/utiliser-xml-avec-mysql-5-1-part-25\/\">\u00e0 suivre&#8230; utiliser XML avec MySQL 5.1 : Ins\u00e9rer du XML dans MySQL<\/a>)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL avec son mod\u00e8le relationnel et XML avec son approche hi\u00e9rarchique ont en commun la vocation d&rsquo;organiser et de structurer des ensembles de donn\u00e9es.<\/p>\n<p>En regardant de plus pr\u00e8s, ces technologies peuvent offrir des solutions compl\u00e9mentaires :<\/p>\n<p>    *<\/p>\n<p>      MySQL s&rsquo;adapte \u00e0 merveille \u00e0 la gestion de syst\u00e8mes d&rsquo;informations \u00e9ventuellement lourds et complexes,<br \/>\n    *<\/p>\n<p>      XML a su devenir un langage universel permettant aux applications de communiquer et d&rsquo;\u00e9changer des informations.<\/p>\n<p>Leur compl\u00e9mentarit\u00e9 appara\u00eet alors \u00e9vidente : XML rend possible l&rsquo;exploitation et le partage des informations contenues dans MySQL par des applications distantes.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[8],"tags":[77,78],"class_list":["post-673","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-xml","tag-xpath"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9LfWW-aR","jetpack-related-posts":[{"id":779,"url":"https:\/\/dasini.net\/blog\/2009\/10\/01\/utiliser-xml-avec-mysql-5-1-part-55\/","url_meta":{"origin":673,"position":0},"title":"Utiliser XML avec MySQL 5.1 (part 5\/5)","author":"Olivier DASINI","date":"1 octobre 2009","format":false,"excerpt":"Voil\u00e0 un petit panorama de l'utilisation des fonctionnalit\u00e9s XML de MySQL. Comme nous l'avons vu, g\u00e9n\u00e9rer le r\u00e9sultat d'une requ\u00eate au format XML reste tr\u00e8s simple avec le client texte mysql, idem pour la g\u00e9n\u00e9ration d'une sauvegarde (mysqldump). De plus, bien que n'\u00e9tant pas un base de donn\u00e9es XML, ont\u2026","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":758,"url":"https:\/\/dasini.net\/blog\/2009\/09\/16\/utiliser-xml-avec-mysql-5-1-part-45\/","url_meta":{"origin":673,"position":1},"title":"Utiliser XML avec MySQL 5.1 (part 4\/5)","author":"Olivier DASINI","date":"16 septembre 2009","format":false,"excerpt":"Les fonctionnalit\u00e9s XPath de MySQL 5 MySQL 5 offre la possibilit\u00e9 de pouvoir ex\u00e9cuter des requ\u00eates XPath sur un flux XML, gr\u00e2ce \u00e0 la fonction extractValue(). Le r\u00e9sultat r\u00e9cup\u00e9r\u00e9 est la concat\u00e9nation de la valeur textuelle de chacun des n\u0153uds trouv\u00e9s (chaque valeur \u00e9tant dissoci\u00e9e des autres par un espace\u2026","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":691,"url":"https:\/\/dasini.net\/blog\/2009\/07\/29\/utiliser-xml-avec-mysql-5-1-part-25\/","url_meta":{"origin":673,"position":2},"title":"Utiliser XML avec MySQL 5.1 (part 2\/5)","author":"Olivier DASINI","date":"29 juillet 2009","format":false,"excerpt":"Ins\u00e9rer du XML dans MySQL Un fichier XML, n'est finalement qu'un fichier contenant du texte et ins\u00e9rer du texte dans un SGBDR, est loin d'\u00eatre la chose la plus difficile. Une simple requ\u00eate INSERT fait l'affaire. Cela nous donne quelque chose comme ceci : INSERT INTO ma_table (champ_texte) VALUES ('...')","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":713,"url":"https:\/\/dasini.net\/blog\/2009\/08\/10\/utiliser-xml-avec-mysql-5-1-part-35\/","url_meta":{"origin":673,"position":3},"title":"Utiliser XML avec MySQL 5.1 (part 3\/5)","author":"Olivier DASINI","date":"10 ao\u00fbt 2009","format":false,"excerpt":"Interroger un flux XML avec Xpath L'emploi de XML ne pr\u00e9senterait pas beaucoup d'int\u00e9r\u00eat sans la possibilit\u00e9 de pouvoir interroger sa structure pour acc\u00e9der \u00e0 une information particuli\u00e8re : le langage XPath r\u00e9pond \u00e0 cette attente et est (en partie du moins) aujourd'hui int\u00e9gr\u00e9 \u00e0 MySQL. Mais avant de voir\u2026","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":334,"url":"https:\/\/dasini.net\/blog\/2008\/12\/13\/les-nouveautes-de-mysql-51-part-45\/","url_meta":{"origin":673,"position":4},"title":"Les nouveaut\u00e9s de MySQL 5.1 &#8212; (part 4\/5)","author":"Olivier DASINI","date":"13 d\u00e9cembre 2008","format":false,"excerpt":"Le moteur de stockage CSV n'est pas une vraie nouveaut\u00e9. Il est disponible depuis MySQL 4.1.4 (MySQL 5.1 pour M.S. Windows). Sa particularit\u00e9 est de stocker les donn\u00e9es dans un fichier texte au format CSV (Comma Separated Values) o\u00f9 les donn\u00e9es sont s\u00e9par\u00e9es par une virgule. Les avantages sont multiples,\u2026","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":295,"url":"https:\/\/dasini.net\/blog\/2008\/12\/06\/les-nouveautes-de-mysql-51-part-35\/","url_meta":{"origin":673,"position":5},"title":"Les nouveaut\u00e9s de MySQL 5.1 &#8212; (part 3\/5)","author":"Olivier DASINI","date":"6 d\u00e9cembre 2008","format":false,"excerpt":"MySQL propose une solution de haute disponibilit\u00e9 : MySQL Cluster. Cette technologie permet de mettre en place une architecture cluster shared nothing \u00e0 l'aide de tables au format NDBCluster. Jusqu'\u00e0 MySQL 5.0, MySQL Cluster ne fonctionnait qu'enti\u00e8rement en m\u00e9moire. Ceci excluait donc certaines bases de donn\u00e9es trop volumineuses. La nouvelle\u2026","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/comments?post=673"}],"version-history":[{"count":10,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/673\/revisions"}],"predecessor-version":[{"id":675,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/673\/revisions\/675"}],"wp:attachment":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/media?parent=673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/categories?post=673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/tags?post=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}