我必须编写 SQL 语句来切换 in 的值,CompanyName
以便table1
当前具有该值的所有行都具有'Linens and Things'
该值'Lamps and Lighting'
,并且当前具有该值的所有行都具有该'Lamps and Lighting'
值'Linens and Things'
。
我的桌子目前看起来像这样:
id CompanyName
--- ----------------------
1 'Linens and Things'
2 'Linens and Things'
3 'Lamps and Lighting'
4 'Lamps and Lighting'
5 'A Different Vendor'
更新后,它应该如下所示:
id CompanyName
--- ----------------------
1 'Lamps and Lighting'
2 'Lamps and Lighting'
3 'Linens and Things'
4 'Linens and Things'
5 'A Different Vendor'