sql – 选择名为“index”的列的表
发布时间:2021-03-16 22:07:05 所属栏目:MsSql教程 来源:网络整理
导读:我有一个名为“index”的列名表 select id,indexfrom item; 给出错误: Msg 1018,Level 15,State 1,Line 1 Incorrect syntax near ‘index’. If this is intended as a part of a table hint,A WITH keyword and parenthesis are now required. See SQL Serv
|
我有一个名为“index”的列名表 select id,index from item; 给出错误:
如何对名为index的列进行选择?我正在使用sqlserver 2008-R2 解决方法使用方括号引用 reserved words:select id,[index] from item 另见Delimited Identifiers的文档. (编辑:黔东南站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 更高性价比 佳能16-35mm f/4L IS镜头
- sql-server – 为什么SQL Server 2008在简单的SQL查询上崩溃
- sql-server – 如何从一个存储过程启动3个存储过程时回滚
- sql server怎样写查询语句?聊聊查询性能问题
- 超值大光圈 三大品牌50mm定焦镜头推荐
- sql-server – 这个NO JOIN PREDICATE警告我应该感到警惕吗
- Linux台式机市场挑战Windows:征途漫漫
- 系统中木马隐藏技术与检查清除方法
- sql-server-2008 – 为什么我不能使用NEWSEQUENTIALID()作为
- sql-server – 在SQL Server中设计条件数据库关系

