没法执行嵌套的语句。怎么改。谢谢!
Insert Into tblUsers(intSequence,strUserName) Values ( (select Count(*) from tblSignUsers),'xxx')
非ID列。
[解决办法]
Insert Into tblUsers(intSequence,strUserName)
select Count(*),'xxx' from tblSignUsers
Insert Into tblUsers(intSequence,strUserName)
select Count(*) as intSequence,'xxx' as strUserName from tblSignUsers
服务器: 消息 1046,级别 15,状态 1,行 1
在此上下文中不允许使用子查询。只允许使用标量表达式。