更改表命令失败 [英] Alter table command failing
本文介绍了更改表命令失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我的以下alter table命令失败,错误为
Hi All,
My following alter table command is failing with error
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near ''(''.
命令:
command:
ALTER TABLE [dbo].[OU]
ADD (Description nvarchar(100), UserGroupName nvarchar(100))
nayone可以告诉我我的错误是什么吗?
谢谢,
Nagendra.
Can nayone tell me what is my mistake?
Thanks,
Nagendra.
推荐答案
我弄错了
正确的命令是
I got the mistake
correct command is
ALTER TABLE [dbo].[OU]
ADD Description nvarchar(100), UserGroupName nvarchar(100)
之前我已经给了多余的括号.
I had given extra brackets earlier.
一起去掉圆形括号.
试试:
Remove circular brackets all together.
Try:
ALTER TABLE
[dbo].[OU]
ADD
Description nvarchar(100),
UserGroupName nvarchar(100)
在此处查看示例: MSDN:ALTER TABLE [
See examples here: MSDN: ALTER TABLE[^]
检查此
Hi ,
Check this
ALTER TABLE [dbo].[OU]
ADD [Description] nvarchar(100), UserGroupName nvarchar(100)
最好的问候
米特瓦里(M.Mitwalli)
Best Regards
M.Mitwalli
这篇关于更改表命令失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文