Home > Software design >  Impossible to delete object table "PLAYER_OBJECT",because it doesnt exists or you dont hav
Impossible to delete object table "PLAYER_OBJECT",because it doesnt exists or you dont hav

Time:04-15

Im getting an error at DROP TABLE but I cant figure out why. My table PLAYER_OBJECT is already coded and working but even if the table is created the error on drop table wont go away. What I my doing wrong.

DROP TABLE PLAYER_OBJECT

CREATE TABLE PLAYER_OBJECT()

CodePudding user response:

You could simply put IF EXISTS between TABLE AND PLAYER_OBJECT, like this:

DROP TABLE IF EXITS PLAYER_OBJECT

You problably have an error in the creation of you table or you didnt launch your code.

  •  Tags:  
  • sql
  • Related