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.
データベース テーブルに 2 つの列があります。1 つのクエリで両方の列を更新したいのですが、列ごとに 2 つの異なる条件を使用します。これを達成する方法..?? 助けてください。
前もって感謝します。
私はmysqlデータベースを使用しています。
UPDATE import SET customer_name = case when customer_name = '' then 'N/A' else customer_name end, city = case when city = '' then 'N/A' else city end