Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> cos na wzor "implode"
eclipse
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 2.04.2002
Skąd: kalisz

Ostrzeżenie: (0%)
-----


hej, szukalem szukalem i nie znalazlem...
czy istnieje w mysql funkcja na wzor php'owej "implode" ?
chodzi mi konkretnie o update rekordu w bazie polegajacy na "doklejeniu" tesktu do juz istniejacego, ale bez koniecznosci pobierania wczesniejszej zawartosci do zmiennej... mysle, ze jasno napisalem (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
E.
Go to the top of the page
+Quote Post
scanner
post
Post #2





Grupa: Zarząd
Postów: 3 503
Pomógł: 28
Dołączył: 17.10.2002
Skąd: Wrocław




Cytat
CONCAT(str1,str2,...)  
Returns the string that results from concatenating the arguments. Returns NULL if any argument is NULL. May have more than 2 arguments. A numeric argument is converted to the equivalent string form:  
mysql> SELECT CONCAT('My', 'S', 'QL');
       -> 'MySQL'
mysql> SELECT CONCAT('My', NULL, 'QL');
       -> NULL
mysql> SELECT CONCAT(14.3);
       -> '14.3'


Więc myślę, że jeśli nie zadziała
Kod
UPDATE tabela SET tekst = text + co_dodac ....

to powinno pomoc
Kod
UPDATE tabela SET tekst = CONCAT(text, co_dodac) ....
Go to the top of the page
+Quote Post
itsme
post
Post #3





Grupa: Zarząd
Postów: 1 512
Pomógł: 2
Dołączył: 22.04.2002
Skąd: Koszalin




ten mySQL manual musi niesamowicie wiele wiedzieć ON MUSI PRACOWAĆ U MNIE (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif)
Go to the top of the page
+Quote Post
eclipse
post
Post #4





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 2.04.2002
Skąd: kalisz

Ostrzeżenie: (0%)
-----


nic dodac nic ujac, dziala (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
dzieki wielkie
E.
Go to the top of the page
+Quote Post
scanner
post
Post #5





Grupa: Zarząd
Postów: 3 503
Pomógł: 28
Dołączył: 17.10.2002
Skąd: Wrocław




Cytat
ten mySQL manual musi niesamowicie wiele wiedzieć ON MUSI PRACOWAĆ U MNIE
Żebyś Ty wiedział, jak cieżko z niego coś wyciagnąć.. facet ma wiedzie niesamowita.. Zreszta on pracuje głównie z PHPManulalem. Mają spółkę "Odpowiedzi na proste pytania" Sp. z o.o.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.12.2025 - 22:26