-
giambinoCome si aggiornano i contatori delle trollate totali? Ci siamo persi un po' di roba.
mysql> select author, count(id) -> from messages -> where author = '::1' -> group by author -> ; +--------+-----------+ | author | count(id) | +--------+-----------+ | ::1 | 8070 | +--------+-----------+ 1 row in set (0.04 sec)Young professional woman and busy mom.-
Re: giambinoOra dovrebbero essere a posto:
mysql> update authors set messages = ( select count(id) from messages where author = nick group by author); Query OK, 38 rows affected, 118 warnings (19 min 17.13 sec) Rows matched: 1794 Changed: 38 Warnings: 118
Young professional woman and busy mom.-
Re: giambinoScritto da: ::1
> Ora dovrebbero essere a posto:
>> mysql> update authors set messages = ( select count(id) from messages where author = nick group by author);
Sono piuttosto debole in SQL, ma non manca un where ?`"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo-
Re: giambinoScritto da: Giambo
> Scritto da: ::1
> > Ora dovrebbero essere a posto:
> >> > mysql> update authors set messages = ( select count(id) from messages where author = nick group by author);
>
> Sono piuttosto debole in SQL, ma non manca un where ?
No, così glieli ho fatti aggiornare tutti tutti. Sai che i 118 warnings sono di autori che non hanno messaggi? Cosa sta succedendo alle nostre spalle?
Young professional woman and busy mom.-
Re: giambinoScritto daNon Autenticatoil 2015-06-29 16:23:28.0 alle 2015-06-29 16:23:28.0Scritto da: ::1
> Scritto da: Giambo
> > Scritto da: ::1
> > > Ora dovrebbero essere a posto:
> > >> > > mysql> update authors set messages = ( select count(id) from messages where author = nick group by author);
> >
> > Sono piuttosto debole in SQL, ma non manca un where ?
>
> No, così glieli ho fatti aggiornare tutti tutti. Sai che i 118 warnings sono di autori che non hanno messaggi? Cosa sta succedendo alle nostre spalle?
Se non lo sai tu?
-
Re: giambinoScritto da: ::1
> > > Ora dovrebbero essere a posto:
> > >> > > mysql> update authors set messages = ( select count(id) from messages where author = nick group by author);
> >
> > Sono piuttosto debole in SQL, ma non manca un where ?
>
> No, così glieli ho fatti aggiornare tutti tutti. Sai che i 118 warnings sono di autori che non hanno messaggi? Cosa sta succedendo alle nostre spalle?
Gente che ha "prenotato" un buon nick sperando di poterlo rivendere quando il FdT entrera' in borsa.`"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo
-
-
-
-
Re: giambinoScritto da: ::1
> Come si aggiornano i contatori delle trollate totali?
Uh, avevo scritto un'SQL che lo faceva ... Come mai non corrisponde al valore reale
? Cpa di JOOQL ? Colpa di Sarru ?
`"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo
-