Sample MySQL Student Table SQL Dump

This page provides the sample student and student_sum datasets used throughout the SQL tutorials. You can copy a complete dump into a practice database and then run the SELECT, WHERE, GROUP BY, JOIN and aggregate examples against the same data.

Practice database only: if you add DROP TABLE IF EXISTS before a dump, any existing table with that name is removed. Do not run destructive setup statements against production data.

Student Table without AUTO_INCREMENT Top ↑

This version keeps the IDs from the sample dataset but does not generate them automatically. The ID is still the primary key, so each value must be unique.


Creating sample MySQL student table using SQL dump in Workbench

Sample Student Records Top ↑

The records below match the SQL dumps on this page. This also corrects two old display-only mismatches: Arnold has mark 55 and Kenn Rein has mark 96.

idnameclassmarkgender
1John DeoFour75female
2Max RuinThree85male
3ArnoldThree55male
4Krish StarFour60female
5John MikeFour60female
6Alex JohnFour55male
7My John RobFive78male
8AsruidFive85male
9Tes QrySix78male
10Big JohnFour55female
11RonaldSix89female
12ReckySix94female
13KtySeven88female
14BigySeven88female
15Tade RowFour88male
16GimmyFour88male
17TumyuSix54male
18HonnyFive75male
19TinnyNine18male
20JacklyNine65female
21Babby JohnFour69female
22ReggidSeven55female
23HerodEight79male
24Tiddy NowSeven78male
25Giff TowSeven88male
26CreleaSeven79male
27Big NoseThree81female
28Rojj BaseSeven86female
29Tess PlayedSeven55male
30Reppy RedSix79female
31Marry ToeeyFour88male
32Binn RottSeven90female
33Kenn ReinSix96female
34Gain ToeSeven69male
35Rows NoumpSix88female

Modern Table Structure Top ↑

For current MySQL examples, the table uses a primary key, InnoDB and utf8mb4. Integer display widths such as INT(2) or INT(3) are not needed.

CREATE TABLE `student` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(50) NOT NULL DEFAULT '',
  `class` VARCHAR(10) NOT NULL DEFAULT '',
  `mark` INT NOT NULL DEFAULT 0,
  `gender` VARCHAR(6) NOT NULL DEFAULT 'male',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

See AUTO_INCREMENT, PRIMARY KEY constraints, and MySQL data types.

Download the complete student SQL dump as a text file

Student Table with AUTO_INCREMENT Top ↑

This version lets MySQL generate the next ID for future inserts while retaining the original IDs in the supplied sample rows.

student_sum Practice Table Top ↑

The student_sum table is used by tutorials that calculate totals, percentages and subject-wise results. See SUM and multiple columns.




Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2026   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer