Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のデータベーステーブルがあると仮定しましょう
id Name 1 X 2 X 3 X 4 Y 5 Z 6 Z
私がしたいのは、名前が具体的に何であれ、名前列が同じ値を持つ行を取得することです。つまり、名前は SQL クエリに入力されません。
結果表:
id Name 1 X 2 X 3 X 5 Z 6 Z
このためのSQLは何ですか?
前もって感謝します