我正在编写存储过程以更新基于列或其他表格。 这是我有:在case语句后编写JOIN语句
Set Foutcome Case when Tp is > 0 and Rr = 0
Then 'settled'
Else
update a set a.Fouctome = b.outcome
From table_a innerjoin table_b
On a.datasource= b.datasource
where datasource like '%Bong%'
但它不起作用。请帮忙。
似乎你的sql语句无效。首先设置你分配一个值作为“定居”,那么其他人进入你的取景另一个更新语句是无效的。 – Oasis
添加一些示例表数据和预期的结果 - 所有的格式化文本。 – jarlh