在 MS SQL Server 中创建作为保留字/关键字的表名 [英] Creating table names that are reserved words/keywords in MS SQL Server

查看:39
本文介绍了在 MS SQL Server 中创建作为保留字/关键字的表名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以为已经是关键字的数据库表命名吗?就我而言,我正在尝试命名将容纳我的用户的表.我将它命名为 User,但它在 SQL Server Management Studio 中显示为粉红色,所以我假设它是一个现有的系统表或关键字.感谢您的建议.

Is it ok to name my database tables that are already keywords? For my case, I am trying to name the table that will hold my users. I've named it User but it is showing up as pink in SQL Server Management Studio so I am assuming its an existing System Table or Keyword. Thanks for your advice.

保留关键字的官方列表:保留关键字(Transact-SQL)

Official list of reserved keywords: Reserved Keywords (Transact-SQL)

推荐答案

重复三遍:

不要这样做,我不会使用保留字!

DO NOT DO IT, I WILL NOT USE RESERVED WORDS!

你会感谢我的!

这篇关于在 MS SQL Server 中创建作为保留字/关键字的表名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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