Question · SQL and MySQL course · Module 5: Modifying data (DML)

What is TRUNCATE

What does the command TRUNCATE TABLE wypozyczenia; do?

Answer options

  • It removes only the first row of the table
  • It renames the table
  • It empties the whole table in one move (without a WHERE clause)
  • It adds a new column to the table

You can check the correct answer by solving this task in the CodeWorlds game.