SQL Server 中列名周围的括号是什么意思? [英] What do brackets mean around column names in SQL Server?

查看:36
本文介绍了SQL Server 中列名周围的括号是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 SQL Server 2008 中添加了一个字段,它将列名放在括号中,如下所示:[column2].其他列名没有括号.括号是什么意思?

I added a field in SQL Server 2008 and it put the column name in brackets like this: [column2]. The other column names don't have brackets. What do the brackets mean?

列名为macro-writer

我应该删除减号并用下划线代替吗?

Should I remove the minus sign and replace it with an underscore?

推荐答案

方括号中的列通常是关键字或包含特殊字符或空格.

Columns enclosed in square brackets are usually keywords or contain special characters or spaces.

你用括号括起来的具体列名是什么?

What specific column name do you have enclosed in brackets?

这篇关于SQL Server 中列名周围的括号是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆