-1

I'm fairly new to SQL so any help with this would be greatly appreciated. I cant spot the syntax error!

-- Creación de la tabla Departamento
DROP TABLE IF EXISTS Departamento CASCADE;
Larnu
  • 76,706
  • 10
  • 34
  • 63
  • [`DROP TABLE` syntax](https://docs.microsoft.com/en-us/sql/t-sql/statements/drop-table-transact-sql?view=sql-server-ver15), please read – Charlieface Jul 16 '21 at 17:29
  • The error is giving you a hint here. `CASCADE` shouldn't be there. – Larnu Jul 16 '21 at 17:31

1 Answers1

0
DROP TABLE IF EXISTS Departamento

CASCADE is about something different

Sergey
  • 2,909
  • 1
  • 4
  • 8