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.
空の行を含むすべての列名を受け取る方法を知りたいだけです(空のテーブル自体ではありません)
それらにはすべていくつかの行がありますが、データが入っていません。
何か案は?
次のようなものはどうですか:
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn) FROM SomeTable
これを 3 列に拡張することもできます。
SELECT COALESCE(NULLIF(Address2,''), NULLIF(Address3,''), Address4)