我对 SQL Server 数据库中的 SQL query-nextval 有疑问:
无法绑定多部分标识符“applicationauth.nextvalue”。
知道有什么问题吗?
这是查询:
insert into applicationauth (app, optionname, conditionnum, groupname, applicationauthid)
select 'AUTOSCRIPT', 'ATTRVAL', 'ATTRVALUECON', varvalue, applicationauth.nextvalue
from maxvars
where varname = 'ALLUSERGROUP';
insert into applicationauth (app, optionname, conditionnum, groupname, applicationauthid)
select 'AUTOSCRIPT', 'HIDEATTR', 'HIDEATTRCON', varvalue, applicationauthseq.nextval
insert into applicationauth (app, optionname, conditionnum, groupname, applicationauthid)
select 'AUTOSCRIPT', 'ATTRVAL', 'ATTRVALUECON', varvalue, applicationauthseq.nextval
from maxvars
where varname = 'ALLUSERGROUP';
insert into applicationauth (app, optionname, conditionnum, groupname, applicationauthid)
select 'AUTOSCRIPT', 'HIDEATTR','HIDEATTRCON', varvalue, applicationauthseq.nextval
from maxvars
where varname = 'ALLUSERGROUP';
insert into applicationauth (app, optionname, conditionnum, groupname, applicationauthid)
select 'AUTOSCRIPT', 'HIDEBUT', 'HIDEBUTCON', varvalue, applicationauthseq.nextval
from maxvars
where varname = 'ALLUSERGROUP';
insert into applicationauth (app, optionname, conditionnum, groupname, applicationauthid)
select 'AUTOSCRIPT', 'HIDEIMP', 'HIDEIMPCON', varvalue, applicationauthseq.nextval
from maxvars
where varname = 'ALLUSERGROUP';
(等等等等 ...)
我收到以下错误消息:
消息 4104,级别 16,状态 1,行 2
无法绑定多部分标识符“applicationauth.nextvalue”。消息 4104,级别 16,状态 1,第 9 行
无法绑定多部分标识符“applicationauthseq.nextval”。(.... 等等等等)