Seite 1 von 1
Abfrage mit update
Verfasst: Mo 14. Jun 2010, 15:16
von Josef
UPDATE products_description SET "<br />" WHERE products_description = "<BR>"
betrifft die Tabelle: products_description und auch die Spalte: products_description.
Leider bekomme ich einen Fehler, keine Ahnung warum.
Re: Abfrage mit update
Verfasst: Mo 14. Jun 2010, 16:26
von Doc Olson
Code: Alles auswählen
UPDATE products_description SET products_description = REPLACE(products_description, "<br>", "<br />")
Re: Abfrage mit update
Verfasst: Mo 14. Jun 2010, 16:34
von Josef
hallo Doc,
ist das als php oder für php MyAdmin gedacht?
Da wird nur ausgegeben: 0 Zeilen betroffen...
Re: Abfrage mit update
Verfasst: Mo 14. Jun 2010, 16:37
von Doc Olson
Das ist eine SQL Anweisung, die ALLE Felder products_description der Tabelle products_description nach Vorkommen von '<br>' durchsucht und diese dann durch '<br />' ersetzt.
EDIT: das ist case-sensitiv. Wenn Du tatsächlich nach '<BR>' suchst, dann entsprechend ändern.
Re: Abfrage mit update
Verfasst: Mo 14. Jun 2010, 16:45
von Josef
danke Doc,
geholfen wie immer...
so hats funktioniert: '<BR>'
Code: Alles auswählen
UPDATE products_description SET products_description = REPLACE(products_description, '<BR>', '<br />')