Class 8 – Examples of SQL CRUD commands

Posted: November 7th, 2009 | Author: | Filed under: mysql | Tags: , , , , , | 1 Comment »

Create

INSERT INTO abloomberg_animals (name, color) VALUE (‘zubr’, ‘brown’)

Read

SELECT * FROM abloomberg_animals WHERE 1
SELECT name, color FROM abloomberg_animals WHERE id=15

Update

UPDATE abloomberg_animals SET name=’zubr’ WHERE id=15
UPDATE abloomberg_animals SET name=’zubr’, color=’brown’ WHERE id=15

Delete

DELETE from abloomberg_animals WHERE id=15

Related posts:

  1. Class 8 – A simple CMS for SQL CRUD

One Comment on “Class 8 – Examples of SQL CRUD commands”

  1. 1 CHAKOUR SAID said at 10:07 am on April 17th, 2012:

    FF


Leave a Reply