Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   UPDATE Strings verbinden? (https://www.delphipraxis.net/53141-update-strings-verbinden.html)

S2B 11. Sep 2005 09:30

Datenbank: MySQL • Version: 4 • Zugriff über: PHP

UPDATE Strings verbinden?
 
Hi @all,
ich habe hier eine Tabelle aus einem phpBB-Forum. Ich möchte möglichst mit einem Update-Befehl vor jeden Topic-Titel einen Parameter hängen, nur weiß ich nicht so recht, wie ich das anstellen kann. Dieses Query funktioniert leider nicht:
SQL-Code:
UPDATE phpbb_topics SET topic_title = '[04/05] ' + topic_title;
Kann mir da vielleicht jemand weiterhelfen? :duck:

Sharky 11. Sep 2005 09:53

Re: UPDATE Strings verbinden?
 
Hai S2B,

versuche es mal so:
SQL-Code:
UPDATE phpbb_topics SET topic_title = CONCAT('[04/05] ',topic_title);

S2B 11. Sep 2005 10:01

Re: UPDATE Strings verbinden?
 
:firejump:

Danke. :drunken:


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz