-3

I don't know the meaning of where 1 1? Thanks fo your answer.

2 Answers2

1

1=1 is true for any row. Therefore, DELETE FROM tablename WHERE 1=1 deletes all rows. DELETE * ... with the asterisk is syntactically incorrect in sqlite.

Also DELETE FROM tablename deletes all rows.

laalto
  • 150,114
  • 66
  • 286
  • 303
0

their is no such statement like delete * from tablename where 1=1.

because where clause is used to give condition so that compiler can get the data according to that condition, u can write where columnname= value. Inside this u can write the particular column name and value on bass of which u want to delete some data.

Sahil Garg
  • 263
  • 1
  • 20