MySQL Forums
Forum List  »  German

Re: [Anfänger] Wert eines benachbarten Feldes abfragen
Posted by: J?rg B?chner
Date: March 05, 2012 12:37PM

> ... CONTENT_OF_FIELD_1_IN_SAME_ROW

Vom Prinzip so was in der Art?
CREATE TABLE tbl (item1 CHAR(20), item2 CHAR(20))
INSERT INTO tbl VALUES ('Gummibaer', 'Tuete')
INSERT INTO tbl VALUES ('Lakritz', 'Lakritzschnecke')
SELECT * FROM tbl WHERE item2 LIKE CONCAT('%',item1,'%')

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.