gpt4 book ai didi

sql-server - 当前命令发生严重错误。 - 未知错误

转载 作者:行者123 更新时间:2023-12-01 06:30:17 25 4
gpt4 key购买 nike

这是我的代码。

;With CTE as
(
select
a.rn,
a.LongDescription as ad,
b.LongDescription as bd
from myTabl as a
left join myTabl as b on a.rn +1 = b.rn
where
a.rn=1
and
a.LongDescription = 'Eric'
)
update CTE
set ad += ' ' + b.LongDescription
from CTE as a
left join myTabl as b on a.rn = b.rn+1
where
a.rn=1

我试图回答一个问题,同时尝试差异。我遇到以下错误的选项,
Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.

这是什么,我什么都没有。我的代码有什么重大错误吗?我试图用谷歌搜索它,但所有结果都将我重定向到“Microsoft Fix”。有些人可以用简单的话解释我有什么问题吗?

最佳答案

我想您需要更改设置行:

set ad = a.ad + ' ' + b.LongDescription

查看 SQL fiddle 演示 here

关于sql-server - 当前命令发生严重错误。 - 未知错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22786370/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com