Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Forum De Bell Tolls > [Mysql] Query che matcha un file.dat
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Dodo
lunatico

User info:
Registered: Jul 2002
Posts: 2340 (0.27 al dì)
Location: in una fibra ottica
Corso: Com Dig
Anno: 3+1 :P
Time Online: 42 Days, 7:55:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Mysql] Query che matcha un file.dat

Ragazzi avrei bisogno di un aiutino in mysql, ho un file .dat con circa 3000 indirizzi email messi uno sotto l'altro, dato che ci tengo alla mia salute mentale (almeno quella rimasta), e dato che dovrei inserirli in un database mysql, non è che esiste una funzione (php o anche altro) che mi matcha il file .dat e per ogni indirizzo mi fa un insert?

Lo so che qualcuno fra voi menti malate lo sa :D

__________________
E' meglio essere ottimisti ed avere torto piuttosto che pessimisti ed avere ragione.

Albert Einstein

19-10-2004 14:11
Click Here to See the Profile for Dodo Click Here to See the Blog of Dodo Click here to Send Dodo a Private Message Find more posts by Dodo Add Dodo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

questo dovrebbe fare al caso tuo ;)

http://dev.mysql.com/doc/mysql/en/mysqlimport.html

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

19-10-2004 15:16
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dodo
lunatico

User info:
Registered: Jul 2002
Posts: 2340 (0.27 al dì)
Location: in una fibra ottica
Corso: Com Dig
Anno: 3+1 :P
Time Online: 42 Days, 7:55:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:lode: funzica alla grande 3016 indirizzi inseriti

devo imparare a consultare la documentazione :D

grazie ancora

__________________
E' meglio essere ottimisti ed avere torto piuttosto che pessimisti ed avere ragione.

Albert Einstein

19-10-2004 19:46
Click Here to See the Profile for Dodo Click Here to See the Blog of Dodo Click here to Send Dodo a Private Message Find more posts by Dodo Add Dodo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dodo
lunatico

User info:
Registered: Jul 2002
Posts: 2340 (0.27 al dì)
Location: in una fibra ottica
Corso: Com Dig
Anno: 3+1 :P
Time Online: 42 Days, 7:55:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho bisogno di voi :help:

sono arrivato a 10000 indirizzi email raggiunti... un problema si presenta... ci sono alcuni indirizzi email ripetuti, c'è una funzione che mi permette di trovare e cancellare i doppioni?

grazie... chiunque mi risponda :lode:

__________________
E' meglio essere ottimisti ed avere torto piuttosto che pessimisti ed avere ragione.

Albert Einstein

25-10-2004 12:03
Click Here to See the Profile for Dodo Click Here to See the Blog of Dodo Click here to Send Dodo a Private Message Find more posts by Dodo Add Dodo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Napolux
-29 Kg da Settembre 2005

User info:
Registered: Jun 2002
Posts: 3666 (0.42 al dì)
Location: Giussano (MI)
Corso: F28
Anno: ???
Time Online: 21 Days, 19:29:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

E' una query stupida....

Leggi la documentazione.

ovvero

RTFM!!! :D

http://www.1keydata.com/sql/sqldistinct.html

Riversa il tutto in una tabella, cosi' hai i dati puliti.

__________________
Napolux.com

25-10-2004 14:17
Click Here to See the Profile for Napolux Click Here to See the Blog of Napolux Click here to Send Napolux a Private Message Visit Napolux's homepage! Find more posts by Napolux Add Napolux to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Alf
°o.mini sayan.o°

User info:
Registered: Jun 2003
Posts: 5381 (0.65 al dì)
Location: Mediolanum
Corso: Informatica
Anno: FINITOOOO!
Time Online: 155 Days, 9:46:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Dodo
ho bisogno di voi :help:

sono arrivato a 10000 indirizzi email raggiunti... un problema si presenta... ci sono alcuni indirizzi email ripetuti, c'è una funzione che mi permette di trovare e cancellare i doppioni?

grazie... chiunque mi risponda :lode:


Se creassi il campo come chiave unique ? :)

All'inserimento dovrebbe darti errore e non inserire l'email gia presente ;)

__________________
(\ /)
( . .)
c('')('') This is Bunny!
Help her succeed in world domination by copy and pasting her in
your signature.

25-10-2004 14:26
Click Here to See the Profile for Alf Click Here to See the Blog of Alf Click here to Send Alf a Private Message Find more posts by Alf Add Alf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dodo
lunatico

User info:
Registered: Jul 2002
Posts: 2340 (0.27 al dì)
Location: in una fibra ottica
Corso: Com Dig
Anno: 3+1 :P
Time Online: 42 Days, 7:55:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Napolux
E' una query stupida....

Leggi la documentazione.

ovvero

RTFM!!! :D

http://www.1keydata.com/sql/sqldistinct.html

Riversa il tutto in una tabella, cosi' hai i dati puliti.


alla query c'ero arrivato, al riversare tutto sull'altra tabella no... la vecchiaia avanza :look:

cmq grazie tante napolux!

alf.. il problema non si presenta all'inserimento nel database perchè c'è un controllo su indirizzi già esistenti, purtroppo ho importato varie liste con duplicati e quindi "saltando" il controllo ora mi trovo con quasi 3000 indirizzi in più....

__________________
E' meglio essere ottimisti ed avere torto piuttosto che pessimisti ed avere ragione.

Albert Einstein

25-10-2004 14:41
Click Here to See the Profile for Dodo Click Here to See the Blog of Dodo Click here to Send Dodo a Private Message Find more posts by Dodo Add Dodo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Off-Topic:
oddio uno spammer! ;P

__________________
http://www.twitter.com/0m4r

25-10-2004 17:30
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Alf
°o.mini sayan.o°

User info:
Registered: Jun 2003
Posts: 5381 (0.65 al dì)
Location: Mediolanum
Corso: Informatica
Anno: FINITOOOO!
Time Online: 155 Days, 9:46:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Dodo
alla query c'ero arrivato, al riversare tutto sull'altra tabella no... la vecchiaia avanza :look:

cmq grazie tante napolux!

alf.. il problema non si presenta all'inserimento nel database perchè c'è un controllo su indirizzi già esistenti, purtroppo ho importato varie liste con duplicati e quindi "saltando" il controllo ora mi trovo con quasi 3000 indirizzi in più....


Scusa io non dicevo di fare un controllo "esterno" ...
Il controllo lo metti nel campo se provi a inserire un valore uguale non te lo fa fare proprio perche' quel campo deve avere valore UNICO ...

Cmq puoi fare pure con la query dopo ...

__________________
(\ /)
( . .)
c('')('') This is Bunny!
Help her succeed in world domination by copy and pasting her in
your signature.

25-10-2004 17:34
Click Here to See the Profile for Alf Click Here to See the Blog of Alf Click here to Send Alf a Private Message Find more posts by Alf Add Alf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 05:58.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

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
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.129 seconds (54.66% PHP - 45.34% MySQL) con 25 query.