(10-04-2026)Architecture & Constraints Data Types, Create Table, and Constraints Day 2 of SQL, and today was all about structure. In Python, you can be a bit flexible with variables. In SQL? Not so much. Rules are everything. I spent the day learning how to build tables properly. It turns out, telling a database exactly what kind of data to expect is the secret to keeping it from breaking later. The Highlights: Data Types: Understanding the nuance between INT, VARCHAR, and DECIMAL. It’s all about efficiency. Constraints: I learned how to use NOT NULL, UNIQUE, and DEFAULT to make sure only "good" data gets into my tables. Insert and Alter Command Primary Keys: Every row needs an identity. Learning how to set a Primary Key felt like giving every piece of data its own unique SSN. It’s a different way of thinking—building the "container" perfectly before you even put a single row of data inside. #SQLLearning #DataStructure #MySQL #BackendDevelopment #Day2

To view or add a comment, sign in

Explore content categories