MySQL Forums
Forum List  »  German

Re: [Anfänger] Wert eines benachbarten Feldes abfragen
Posted by: Thomas Wiedmann
Date: March 04, 2012 01:52PM

Hallo Uli,
gut, dann sind wir jetzt einen Schritt weiter. Ich füge die drei Beispieldatensätze in die Tabelle ein.
INSERT INTO txp_form VALUES
( 'Link1','link','<txp:link /><br /><txp:link_description />' ),
( 'Link2','link','<txp:link /><br /><txp:link_description />' ),
( 'Link3','link','<txp:link /><br /><txp:link_description />' );

und gebe die Spalte "form" aus. Soweit habe ich es verstanden.
SELECT form
  FROM txp_form
ORDER BY name;

Dann bekomme ich dies Ergebnis:
+--------------------------------------------+
| form                                       |
+--------------------------------------------+
| <txp:link /><br /><txp:link_description /> |
| <txp:link /><br /><txp:link_description /> |
| <txp:link /><br /><txp:link_description /> |
+--------------------------------------------+
3 rows in set (0.00 sec)
mysql>

Soweit habe ich es verstanden, aber wie soll nun das gewünschte Ergebnis aussehen (anhand dieser Beispieldaten)?

Grüße
Thomas

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.