Can we use delete function to delete just the specific value of a specific column? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Can we use delete function to delete just the specific value of a specific column?

i.e. delete if value = condition. we are not deleting the whole row.

24th Jul 2016, 2:30 AM
Olcay Sarmaz
Olcay Sarmaz - avatar
2 Respostas
+ 2
If you want to delete a particular value (which is as good as assigning it to null), use UPDATE table_name SET my_col = NULL WHERE condition I don't think we can use delete for that purpose.
24th Jul 2016, 6:25 AM
Tanmay Kshirsagar
Tanmay Kshirsagar - avatar
0
ya olcay is right you have to update table for that particular cell , delete function will Delete whole row according to condition
24th Jul 2016, 12:00 PM
ashwath nm
ashwath nm - avatar