sql - Delete a row (Record) in MySQL -


here code delete first row.

but not effected!

mysql> select * myt; +--------+--------------+------+---------+ | fname  | lname        | age  | phone   | +--------+--------------+------+---------+ | null   | jackson      | null |    null | | stive  | null         | null |    null | | ghbfgf | rtrgf        |   22 |     111 | | zxas   | zxa          |   30 | 6547812 | | wewew  | uytree       |   22 |  658478 | +--------+--------------+------+---------+ 5 rows in set (0.00 sec)  mysql> delete myt     -> fname = "null"; query ok, 0 rows affected (0.00 sec) 

thanks!

use is null.

you cannot use arithmetic comparison operators such =, <, or <> test null.

delete myt fname null 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -