作者:2449978963潇潇 | 来源:互联网 | 2023-05-26 16:56
1> Saharsh Shah..:
试试这个:
UPDATE tableA
SET Mashup = IF(Keyword = Title, Keyword, CONCAT(Keyword, ' ', Title));
检查这个SQL FIDDLE DEMO
OUTPUT
| KEYWORD | TITLE | MASHUP |
|------------|------------|------------------|
| Green | Green | Green |
| Green | Watermelon | Green Watermelon |
| Watermelon | Watermelon | Watermelon |