Default value with two sets of parentheses instead of one(带有两组括号而不是一组括号的默认值)
问题描述
假设我有一个 int 字段,我将默认值设置为 (0),这可行,但我见过有人这样做((0)),为什么?
Let's say I have an int field, and I set the default value as (0), which works, but I've seen people doing it like this instead ((0)),why?
推荐答案
((0)) 是它在目录视图中或在 SSMS 中生成脚本时的显示方式.所以我认为当你看到它很可能是一个生成的脚本而不是从头开始手写的时候.
((0)) is how it will appear within the catalog views or if you generate a script in SSMS. So I think when you see that it's most likely a generated script and not hand-written that way from scratch.
也就是说,(0)、((0)) 甚至 ((((((((((((0))))))))))))) ...假设我数对了,额外的括号不会改变意思,只是可读性.
That said, there is nothing different between (0), ((0)) or even (((((((((((((0))))))))))))) ... assuming I counted right, extra parentheses don't change the meaning, just readability.
这篇关于带有两组括号而不是一组括号的默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:带有两组括号而不是一组括号的默认值
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- SQL 临时表问题 2022-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 更改自动增量起始编号? 2021-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
