LXLogicExcel
๐Ÿ”ฅ
0
โญ
0
INSERT INTO - Adding Records1 / 10
The INSERT INTO command is how you insert a new record into a database table. Try:

INSERT INTO cities (city_id, city_name, country, population_millions) VALUES (6, 'Lisbon', 'Portugal', 0.5);

Yes, there are other ways to do this, but this method is best practice and is optimized for learning.
city_idcity_namecountrypopulation_millions
1ParisFrance2.1
2BerlinGermany3.6
3MadridSpain3.2
4RomeItaly2.8
5ViennaAustria1.9

Ctrl+Enter to submit

๐Ÿ”ฅ 0 streak
โญ 0 XP this lesson
All Lessons

INSERT INTO - Adding Records - Free SQL Practice Online

Practise INSERT INTO - Adding Records with 10 free, interactive SQL exercises. You type real queries into your browser and get instant feedback on every answer - no database setup, no install, and no signup. It is a fast, hands-on way to learn SQL online and build query skills you can use at work.