我有三个表格样本。我使用 mysql
将数据存储在数据库中
+--------------------------+
| Table-1 |
+--------------------------+
| Sl.No | Name | City |
+-------+------+-----------+
| 1 | Carl | Australia |
+-------+------+-----------+
+--------------------------+
| Table-1 |
+--------------------------+
| Sl.No | Name | City |
+-------+------+-----------+
| 1 | carl | australia |
+-------+------+-----------+
+--------------------------+
| Table-1 |
+--------------------------+
| Sl.No | Name | City |
+-------+------+-----------+
| 1 | CARL | AUSTRALIA |
+-------+------+-----------+
- 很明显我们可以在每个表中看到一行数据
- 数据的性质相同
我所做的是我使用了不同的大小写字母,有些是大写字母,有些是小写字母。
存储在数据库中的数据区分大小写吗?
最佳答案
数据只是作为原始数据存储。但是,如果您想以任何特定格式获取数据,您可以对其进行格式化。您可以根据自己的方便插入数据,但在内部它们的解释相同,即 ABC 与 abc 和 aBc 相同
默认情况下,MySQL 查询不区分大小写。
the case sensitivity of the underlying operating system plays a part in the case sensitivity of database and table names. This means database and table names are not case sensitive in Windows, and case sensitive in most varieties of Unix. One notable exception is Mac OS X, which is Unix-based but uses a default file system type (HFS+) that is not case sensitive. However, Mac OS X also supports UFS volumes, which are case sensitive just as on any Unix.
旁注:-
在数据库内部,所有数据都以二进制格式存储。您可以有不同的数据类型,计算机使用这些数据类型来解释如何向用户显示数据,但这只是一个掩码。
关于mysql - 存储在表中的数据是否区分大小写?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19165099/