4/1/2024 0 Comments Dbschema alternative![]() In the example above, if we read the data from the city table, we’ll see that every city has the associated country_id. We want to reference these two tables so that every city will be associated with the right country. It consists of a primary key column on the parent table, referenced by other columns from the child tables.įor example, we can take two tables, country, and city. What is a foreign key?Ī foreign key is a column or a group of columns that acts as a cross-reference between two tables. Overall, the database is easier to scale because it doesn’t impose many restrictions. Compared with the traditional RDBMS, MongoDB requires a different way of approaching the database design. It stores data in JSON-like files and does not impose any structure. MongoDB is a popular database that doesn’t use any schema.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |