列名称与空格 [英] column name with space
本文介绍了列名称与空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨团队,
在表格中我给了空间列但是在程序中我提到了没有空格的列名称它是否有效
例如:
创建表格测试
(
[nEid] int
)
在程序中我提到这个[nEid]专栏,因为[nEid]是它是否有效
谢谢,
Ramesh.m
Hi team,
In table i have given column with space but in procedure i have mentioned column name without space does it works or not
example :
create table test
(
[nEid ]int
)
in procedure i mention this [nEid ] column as [nEid] is it work or not
Thanks,
Ramesh.m
推荐答案
它会工作,但每次在SELECT语句中你都需要使用括号[nEid]
来调用这个字段。
为什么要复杂化?
It will work, but every time in SELECT statement you''ll need to call this field using brackets[nEid ]
.
Why do you want to complicate it?
这篇关于列名称与空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文