MySQL Forums
Forum List  »  German

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

Hallo Uli,
also mir ist es nach wie vor nicht klar worauf Du hinaus willst, deshalb mal ein Beispiel, so wie ich es mir vorstelle. Erst wird eine Tabelle erzeugt (CREATE TABLE..), dann werden drei Datensätze (mit INSERT) in die Tabelle eingefügt.

CREATE TABLE txp_form (
  name VARCHAR(20) NOT NULL,
  type VARCHAR(10) NOT NULL,
  form VARCHAR(100) NOT NULL
);

INSERT INTO txp_form VALUES
( 'name1','type1','form1' ),
( 'name2','type2','form2' ),
( 'name3','type3','form3' );

Wie sehen Deine Daten aus?
Was soll dann herauskommen?

Die CODE-Darstellung kann man mit [ CODE ] und [ / CODE ] (ohne die Leerzeichen) erzeugen.

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.