表名具有空格的利弊 [英] Pros and Cons of table name having spaces

查看:92
本文介绍了表名具有空格的利弊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个项目中,需要有一个表,表之间有空格.有些人建议我不要包含空格,因为它不是一种好方法.

In one of my project, it was required to have a table with space in between. Some suggest me not to include spaces because it is not a good technique.

我们仍然可以在查询中使用单双引号作为表名来实现它.但是我需要一个不选择空格的坚实后盾.请帮忙.

we can still implement it using single-double quotes for table name in queries. But i need a solid backing for not opting spaces. Please help.

推荐答案

如果您想进行动态SQL,它将使其更难阅读,并增加了复杂性.另一方面,表名称中的空格不会增加任何值.

It makes it harder to read, creates complexity if you ever want to do dynamic SQL. Spaces in the tables names on the other hand add no value whatsoever.

先生.安德森指出,这很乏味.这是真的,但更重要的是,它增加了不必要的乏味.

Mr. Anderson points out that its tedious. This is true enough, but more importantly it adds unnecessary tediousness.

这篇关于表名具有空格的利弊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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