From node@satfilm.net.pl Mon Oct 13 08:55:59 2008 From: node@satfilm.net.pl To: lms@lists.lms.org.pl Subject: [lms] tworzenie wiadomosci z pin oraz id Date: Mon, 13 Oct 2008 08:55:42 +0200 Message-ID: <2607.212.244.161.2.1223880942.squirrel@poczta.satfilm.net.pl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4192195301328019097==" --===============4192195301328019097== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Witam, probuje wszystkim uzytkownikom utworzyc wiadomosc o tresci, ktora bedzie zawierac id uzytkownika oraz pin. Wiem, ze to nie jest szkółka SQL, ale moze znajdzie sie ktos kto pozwoli mi zmruzyc oko? :) mysql> UPDATE customers SET message = "Prosimy uzupełnić dane abonenta pod adresem:
http://gw.lan/ebok/
Twój identyfikator: XXXX
Twój PIN:"+(SELECT pin from customers)+"
"; ERROR 1093 (HY000): You can't specify target table 'customers' for update in FROM clause !DSPAM:48f2f0f416915315134984! --===============4192195301328019097==-- From alec@alec.pl Mon Oct 13 09:24:26 2008 From: "A.L.E.C" To: lms@lists.lms.org.pl Subject: Re: [lms] tworzenie wiadomosci z pin oraz id Date: Mon, 13 Oct 2008 09:28:06 +0200 Message-ID: <48F2F886.3010206@alec.pl> In-Reply-To: <2607.212.244.161.2.1223880942.squirrel@poczta.satfilm.net.pl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3830396299803138526==" --===============3830396299803138526== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit node(a)satfilm.net.pl wrote: > Witam, > probuje wszystkim uzytkownikom utworzyc wiadomosc o tresci, ktora bedzie > zawierac id uzytkownika oraz pin. Wiem, ze to nie jest szkółka SQL, ale > moze znajdzie sie ktos kto pozwoli mi zmruzyc oko? :) > > mysql> UPDATE customers SET message = "Prosimy uzupełnić dane abonenta pod > adresem:
href=\"http://gw.lan/ebok/\">http://gw.lan/ebok/
Twój > identyfikator: XXXX
Twój PIN:"+(SELECT pin from customers)+"
"; > ERROR 1093 (HY000): You can't specify target table 'customers' for update > in FROM clause > > UPDATE customers SET message = CONCAT('Prosimy uzupełnić dane abonenta pod adresem:
http://gw.lan/ebok/
Twój identyfikator: ', LPAD(id, 4, 0), '
Twój PIN:', pin, '
'); -- Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252 LAN Management System Developer http://lms.org.pl Roundcube Webmail Project Developer http://roundcube.net !DSPAM:48f2f7a921564073210324! --===============3830396299803138526==-- From node@satfilm.net.pl Mon Oct 13 14:22:31 2008 From: node@satfilm.net.pl To: lms@lists.lms.org.pl Subject: Re: [lms] tworzenie wiadomosci z pin oraz id Date: Mon, 13 Oct 2008 14:22:30 +0200 Message-ID: <2758.212.244.161.2.1223900550.squirrel@poczta.satfilm.net.pl> In-Reply-To: <48F2F886.3010206@alec.pl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9149100597556544343==" --===============9149100597556544343== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit > UPDATE customers SET message = CONCAT('Prosimy uzupełnić dane abonenta pod > adresem:
http://gw.lan/ebok/
Twój > identyfikator: ', LPAD(id, 4, 0), '
Twój PIN:', pin, '
'); wysmienite! dlugo jeszcze bym bladzil... dziekuje za pomoc !DSPAM:48f33d8673591804284693! --===============9149100597556544343==--