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

Conteúdo do Curso

SQL in Python Projects

SQL in Python Projects

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

bookChallenge 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?

Which field should be the PRIMARY KEY?

Selecione a resposta correta

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 3
some-alt