Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge 6: Table Design | More About SQLite
SQL in Python Projects
course content

Зміст курсу

SQL in Python Projects

SQL in Python Projects

1. Development Environment on Your PC
2. Introduction to SQLite
3. CRUD
4. More About SQLite

Challenge 6: Table Design

Complete all parts of the task in sequence

  • 📁 Create a new project in PyCharm;
  • 📝 Create a new python file;
  • 📚 Import the sqlite3 library;
  • 🗄 Create a new database;
  • 🤚 Create a cursor;
  • 📄 Create a table named cars with the following fields:
    • id;
    • brand;
    • engine_capacity;
    • video_presentation;
  • 📄 Select the appropriate data types in the table field;
  • 🗝 One of the fields must be PRIMARY KEY;
  • 🪖 Save the changes;
  • 🔑 Close the database connection.

Which field should be the PRIMARY KEY?

Виберіть правильну відповідь

Все було зрозуміло?

Секція 4. Розділ 3
We're sorry to hear that something went wrong. What happened?
some-alt