ich habe es nicht ausprobiert, aber eigentlich klingt für mich in dem fall:
UPDATE table SET txt = CONCAT("foobar",txt) WHERE ...
als logische lösung deines Problems.
Am Montag, 19. Januar 2004 11:44 schrieb Alex:
> Hartmut Holzgraefe wrote:
> > Alex wrote:
> >> ist es möglich mit einem befehl einer tabellenzelle die schon daten
> >> beinhaltet noch daten hinzuzufügen?
> >> wenn ja wie? ein update löscht mir ja den bisherigen inhalt.
> >
> > CONCAT() hilft
> >
> > http://www.mysql.com/doc/en/String_functions.html#IDX1174
> >
> > UPDATE table SET txt = CONCAT(txt, "foobar") WHERE ...
>
> Wie kann ich dem feld txt nun z.B. am anfang etwas hinzufügen?
>
> Bisheriger Inhalt von Feld txt: "Hallo ich bin ein string"
> mit: UPDATE table SET txt = CONCAT(txt, "foobar") WHERE ...
> bekomm ich nun "Hallo ich bin ein stringfoobar"
>
> Ich hätte gerne :) "foobarHallo ich bin ein string"
>
> Wie kann ich dies realisieren? Mit einer REGEXP? oder brauche ich eine
> andere mysql Funktion?
>
> Gruesse Alex
--
Mit freundlichem Gruß
Felix Antonius Wilhelm Ostmann
Software-Entwicklung
---------------------------------------------------
os3.com GmbH, Schlosswall 2, 49080 Osnabrueck
Fon: 01805-16 99 16 - Fax: 01805-16 99 17
Email: ostmann@stripped - Website: www.os3.com
---------------------------------------------------
AG Osnabrück, HRB 19187, Ust-Identnr: DE813039181
Geschäftsführer: Diplom Kaufmann Martin Steinkamp
---------------------------------------------------