PDA

View Full Version : MySQL Help


Keyhead
30/07/2015, 02:59 AM
Is there anyway I can do something similar to:



DELETE * FROM `contacts` WHERE `id` = %d AND `owner` = %d



The above doesn't seem to work.

Abagail
30/07/2015, 03:01 AM
Why would you need to even put a "*"? You are not able to delete columns specifically, only rows? You can try:


DELETE FROM `contacts` WHERE `id` = %d AND `owner` = %d

Keyhead
30/07/2015, 03:03 AM
Well, Cheers. I tend to make stupid idiotic mistakes.