gpt4 book ai didi

SQL 错误 - 列数多于列列表中指定的列数

转载 作者:行者123 更新时间:2023-12-04 14:29:28 25 4
gpt4 key购买 nike

我正在尝试从以下查询中检索结果,但不断收到此错误消息:

Msg 8158, Level 16, State 1, Line 1
'a' has more columns than were specified in the column list.

我的查询:

select
*
from
(select
customer_key as customer_id, updated_by as [Help Desk]
from
permission) a (nolock)
where
[Help Desk] is not null

最佳答案

select 
*
from
(select
customer_key as customer_id, updated_by as [Help Desk]
from
permission with (nolock)) as a

关于SQL 错误 - 列数多于列列表中指定的列数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37979256/

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