> For the complete documentation index, see [llms.txt](https://lei-d.gitbook.io/sql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lei-d.gitbook.io/sql/misc/why-sql-instead-of-excel+vba.md).

# Why SQL instead of Excel + VBA?

* SQL是自动化，Excel是手动化
* 当数据量大时，Excel存储空间大，速度慢
* Excel+VBA对于少量的数据和简单的需求来说的确已经够了， 但当数据量增大、需求变得复杂、运行环境多样时，就只能启用数据库了

数据库更要解决

1）数据完整性、一致性

2）并发操作

3）数据访问安全

4）海量数据读取性能

5）分布式数据

6）数据备份、恢复、容灾

7）数据分析

8）跨平台兼容及硬件、操作系统升级兼容

等方面的问题

这些才是数据库的核心功能
