Export do CSV z MySQL

From: Martin Zeidler (zm@wo.cz)
Date: 01. 03. 2001, 17:43 CET


Probiral se tady export do CSV z MySQL. Bylo tady reseni upravit si
PHPMyAdmin nebo si to napsat v PHP :o)

Dnes se v konferenci MySQL na Pandore objevilo tohle a nejjednodusi reseni:

select col1, col2, col3, ... from <table> where
<condition> into outfile 'muj_domaci_adresar/export.csv'
fields terminated by ';' lines terminated by '\n'

Vyzkousel jsem, ocenil jsem, zapsal jsem do archivu dobrych napadu :o)

Martin Zeidler
----------------------
mailto:pepa_z_hongkongu@wo.cz
http://kopec.yo.cz
http://zeidler.web.worldonline.cz



This archive was generated by hypermail 2.1.2 : 04. 09. 2001, 05:48 CEST