Author: Martyna Sławińska

Martyna is a software developer with a passion for programming, automation, and innovation. Currently working for the global corporate IT consulting sector, she is a new-generation techie who hails from Warsaw University of Technology, Poland. She has certifications in both database administration and Java development. Her interests include creating small automation devices using embedded systems and various electronic components. In her free time, she practices yoga, which helps her to center her thoughts and come up with new ideas.

Database Constraints: What They Are and How to Define Them in Vertabelo

Database constraints help us keep our data clean and orderly. Let’s look at the most common database constraints and how to conveniently define them in Vertabelo. It’s a common practice to set rules for the data in a database. Thanks to these rules, you can avoid incorrect data in a column, e.g. a text string in an Age column or a NULL in a Name column. In this article, we’ll dive into SQL’s database constraints: PRIMARY KEY, FOREIGN KEY, NOT NULL, UNIQUE, DEFAULT, and CHECK.