how can i delete records if two columns match mysql php -
my problem want delete 1 record on table "provicional" if "id" , "password" match... have simple code work id , want delete if both match!
$sql = "delete `provicional` `id` in ('3','basico')";
many
a not popular way of doing in mysql be:
delete provicional (id, password) = (3, 'basico')
note can add more 2 elements in each list.
tip: not use apostrophes '
around numeric fields.
Comments
Post a Comment