sql与nosql_SQL与NoSQL之间的差异

sql与nosql

1)SQL (1) SQL)

SQL stands for Structural Query Language, used to retrieve data from the database. It is the core of the relational database. It is a schema based and easy to retrieve data and having the complex queries.SQL stand for Structural query language, used to retrieve data from the database. It is the core of the relational database. It is a schema based and easy to retrieve data and have complex queries.

SQL代表“结构化查询语言” ,用于从数据库检索数据。 它是关系数据库的核心。 它是基于架构的,易于检索数据并具有复杂的查询。SQL表示结构化查询语言,用于从数据库检索数据。 它是关系数据库的核心。 它是基于架构的,易于检索数据并具有复杂的查询。

sql daigram

2)NoSQL (2) NoSQL)

NoSQL stands for Not only SQL database, used to provide a mechanism for storage and retrieval of data from the database and it is also the next generation database. It has no schema and can handle a huge or large amount of data. It is not a query language and no relationships.

NoSQL不仅代表SQL数据库 ,还用于提供存储和检索数据库中数据的机制,它还是下一代数据库。 它没有架构,可以处理大量或大量数据。 它不是查询语言,也没有关系。

nosql daigram

SQL与NoSQL (SQL vs NoSQL)

Here are the differences between SQL and NoSQL based on the properties.

这是基于属性的SQL和NoSQL之间区别

PropertiesSQLNoSQL
Type of databaseRelational database - because it stores data in a structured form where table organizes structure data fields into defined columns.Non-Relational database - because non-relational database uses the single document file to store data instead of using the table in the database.
SchemaPre-defined schema - SQL requires you to use predefined schemas to determine the structure of your data before you work with it. Also, all of your data must follow the same structure.Dynamic schema - because it gives you the flexibility to change your data schema without modifying any of your existing data.
Database categoryTable based databasesDocument based, key value store, graph store, store wide columns
QueryCan use complex queryNot fit for complex queries
Hierarchical data storageNot fit because it uses tables to store data. Better than SQL because it uses key value pair to store data
ScalabilityVertically scalable: increase RAM, CPU on a single server.Horizontally scalable: Add more servers into the cluster of servers.
LanguageIt has a specific language (structure query language for defining and manipulating data) and it does not vary from database to database.It has no specific language (unstructured query language because of data stored in different forms like graph-based, document-oriented, column-oriented, or organized as a KeyValue store) and varies from database to database.
Online processingIt is the best fit for transactional type applications. It uses OLTP (online transactional processing).It can be used for transactional type applications, but, is not stable for high load applications. It uses OLAP (online analytical processing).
Base propertyACID Property (Atomicity, consistency, isolation, durability)CAP theorem (consistency, availability, partition tolerance)
External supportSupport provided by all the SQL vendors.Only limited experts available because for this support we have to rely on the community.
ExampleOracle, MySQL, PostgreSQL, SQL Server, SQLiteRedis, mongoDB, Apache HBASE, cassandra
物产 SQL NoSQL
数据库类型 关系数据库-因为它以结构化形式存储数据,其中表将结构数据字段组织到定义的列中。 非关系数据库-因为非关系数据库使用单个文档文件来存储数据,而不是使用数据库中的表。
架构图 预定义模式-SQL要求您在使用数据之前使用预定义模式来确定数据的结构。 另外,所有数据都必须遵循相同的结构。 动态架构-因为它使您可以灵活地更改数据架构而无需修改任何现有数据。
数据库类别 基于表的数据库 基于文档,键值存储,图形存储,存储宽列
询问 可以使用复杂的查询 不适合复杂的查询
分层数据存储 不适合,因为它使用表来存储数据。 比SQL更好,因为它使用键值对存储数据
可扩展性 垂直可扩展:在单个服务器上增加RAM和CPU。 水平可扩展:将更多服务器添加到服务器集群中。
语言 它具有特定的语言(用于定义和处理数据的结构查询语言),并且在数据库之间没有不同。 它没有特定的语言(非结构化查询语言,因为数据以不同的形式存储,例如基于图,面向文档,面向列或组织为KeyValue存储),并且因数据库而异。
在线处理 它最适合事务型应用程序。 它使用OLTP(在线事务处理)。 它可以用于事务型应用程序,但是对于高负载应用程序来说不稳定。 它使用OLAP(在线分析处理)。
基本财产 酸性质 (原子性,稠度,隔离性,耐久性) CAP定理 (一致性,可用性,分区容限)
外部支持 所有SQL供应商提供的支持。 只有有限的专家可用,因为要获得这种支持,我们必须依靠社区。
Oracle,MySQL,PostgreSQL,SQL Server,SQLite Redis,mongoDB,Apache HBASE,cassandra

Conclusion:

结论:

In this article we have learned about SQL and NoSQL database differences, its qualities, where it can use, it's all the properties, etc. I hope you understand the differences between them. Have a great day! Happy Learning!

在本文中,我们了解了SQL和NoSQL数据库的区别 ,其质量,可以使用的地方,所有属性等等。希望您了解它们之间的区别。 祝你有美好的一天! 学习愉快!

翻译自: https://www.includehelp.com/dbms/differences-between-sql-vs-nosql.aspx

sql与nosql

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值