MYSQL Tutorial



ROW AND COLUMNS


πŸ“Œ Rows and Columns in MySQL

In a MySQL table:

  • πŸ”Ή Columns define the structure β€” they are the fields like id, name, age.
  • πŸ”Ή Rows are the records β€” each row contains values for each column.

πŸ“ Example: students Table

ID Name Age City
1 Amit 21 Delhi
2 Riya 23 Mumbai

🧩 Understanding Columns

  • Columns are like headers in Excel.
  • Each column has a name and a data type.
  • Example: name VARCHAR(50) β†’ column for names up to 50 characters.

🧩 Understanding Rows

  • Rows hold the actual data.
  • Each row is a full record (like 1 student’s data).
  • Rows are added using the INSERT INTO statement.

πŸ› οΈ Insert Example (Row)

INSERT INTO students (name, age, city)
VALUES ('Suman', 22, 'Bangalore');
  
πŸ’‘ Tip: You define columns when creating the table. You insert rows later as data.

🌟 Enjoyed Learning with Us?

Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!

Leave a Google Review