Tuesday, March 12, 2013

How to DELETE data from database


Deleting data from database is easy.

If you have a table with data from previous example (here is example) you can try our next code:


DELETE
    FROM
        cars
    WHERE
        id = 3;

If you don't have row with id = 3 just chane it to other number.
That is all.

No comments: