 |
publi |
| [PHP] Da SQL a Excel |
24-10-2006 15:08 |
|
 |
publi |
.grande:maestro.

Registered: Jun 2002
Posts: 885 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 8 Days, 6:51:22 [...]
Status: Offline
Edit | Report | IP: Logged |
[PHP] Da SQL a Excel
E' possibile trasferire le tabelle di un DB in SQL in un file CSV Excel?
__________________
Acchiappasogni
|
|
24-10-2006 15:08 |
|
|
|  |
 |
Hamelin |
| Non mi pare Excel fornisca un metodo di importazio ... |
25-10-2006 16:49 |
|
 |
Hamelin |
.pifferaio.magico.

Registered: Feb 2003
Posts: 662 (0.08 al dì)
Location: ..tra i monti intorno ad Hamelin..
Corso: Ingegneria Informatica
Anno: 3°
Time Online: 7 Days, 7:19:55 [...]
Status: Offline
Edit | Report | IP: Logged |
Non mi pare Excel fornisca un metodo di importazione del genere,ma... CSV è un formato molto semplice, scrivere del codice (in qualsiasi linguaggio) che trasformi una relazione SQL in un file di questo tipo è piuttosto semplice: basta una SELECT * e poi un po' di parsing sulle tuple risultanti... se poi paramatrizzi la funzione con i nomi di database e relazione puoi ripetere l'operazione quante volte vuoi.
__________________
Bjarne Stroustrup: "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone."
Andrew S. Tanenbaum: "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway."
Edsger Dijkstra: "Computer Science is no more about computers than astronomy is about telescopes."
Robert Firth: "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs."
Donald Knuth: "A mathematical formula should never be 'owned' by anybody! Mathematics belong to God."
|
|
25-10-2006 16:49 |
|
|
|  |
 |
publi |
| no, perche vedo che da PhpMyAdmin si puo fare semp ... |
25-10-2006 17:31 |
|
 |
publi |
.grande:maestro.

Registered: Jun 2002
Posts: 885 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 8 Days, 6:51:22 [...]
Status: Offline
Edit | Report | IP: Logged |
no, perche vedo che da PhpMyAdmin si puo fare semplicemente, ma da codice non so come fare...
|
|
25-10-2006 17:31 |
|
|
|  |
 |
Walter |
| Controlla il codice di phpMyAdmin, è open source ... |
25-10-2006 20:28 |
|
 |
Walter |
dsy adminz

Registered: Mar 2002
Posts: 5304 (0.61 al dì)
Location: Milano 90% - Valle Camonica 10%
Corso: Magistrale in Informatica
Anno: fine!
Time Online: 99 Days, 4:32:33 [...]
Status: Offline
Edit | Report | IP: Logged |
Controlla il codice di phpMyAdmin, è open source ^_^
__________________
"Ragione e passione sono timone e vela della nostra anima navigante." - Kahlil Gibran
"Senza musica la vita sarebbe un errore." - Friedrich Nietzsche
|
|
25-10-2006 20:28 |
|
|
|  |
 |
publi |
| Uff... sono punto a capo... :( ... |
26-10-2006 14:39 |
|
 |
publi |
.grande:maestro.

Registered: Jun 2002
Posts: 885 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 8 Days, 6:51:22 [...]
Status: Offline
Edit | Report | IP: Logged |
Uff... sono punto a capo... 
__________________
Acchiappasogni
|
|
26-10-2006 14:39 |
|
|
|  |
 |
Hamelin |
| Eddai... CSV è un banale testo ASCII con qualche ... |
26-10-2006 15:33 |
|
 |
Hamelin |
.pifferaio.magico.

Registered: Feb 2003
Posts: 662 (0.08 al dì)
Location: ..tra i monti intorno ad Hamelin..
Corso: Ingegneria Informatica
Anno: 3°
Time Online: 7 Days, 7:19:55 [...]
Status: Offline
Edit | Report | IP: Logged |
Eddai... CSV è un banale testo ASCII con qualche virgola ( http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm ). Secondo me non ci metti molto ad implementare una soluzione...
__________________
Bjarne Stroustrup: "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone."
Andrew S. Tanenbaum: "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway."
Edsger Dijkstra: "Computer Science is no more about computers than astronomy is about telescopes."
Robert Firth: "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs."
Donald Knuth: "A mathematical formula should never be 'owned' by anybody! Mathematics belong to God."
|
|
26-10-2006 15:33 |
|
|
|  |
 |
publi |
| fatta! semplice semplice, ma non conoscevo gli hea ... |
26-10-2006 16:06 |
|
 |
publi |
.grande:maestro.

Registered: Jun 2002
Posts: 885 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 8 Days, 6:51:22 [...]
Status: Offline
Edit | Report | IP: Logged |
fatta! semplice semplice, ma non conoscevo gli header da inserire...
__________________
Acchiappasogni
|
|
26-10-2006 16:06 |
|
|
|  |
 |
| All times are GMT. The time now is 16:59. |
|
|
 |
|
 |
|
|
|  |
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|