Escolar Documentos
Profissional Documentos
Cultura Documentos
Implementations
MySQL, Postgre, Oracle, Microsoft SQL Server
“In computer programming, create, read, update, and delete (CRUD)
are the four basic functions of persistent storage. Alternate words are
sometimes used when defining the four basic functions of CRUD, such
as retrieve instead of read, modify instead of update,
or destroy instead of delete. CRUD is also sometimes used to
describe user interface conventions that facilitate viewing, searching,
and changing information; often using computer-
based forms and reports. The term was likely first popularized
by James Martin in his 1983 book managing the Data-base
Environment. The acronym may be extended to CRUDL to
cover listing of large data sets which bring additional complexity
such as pagination when the data sets are too large to hold easily in
memory.”
CRUD is an acronym that stands for Create, Read, Update,
and Delete.
Create data in a table
A new actor has just appeared in a film
VALUES (value1,value2,value n)
Examples:
Get all rows and columns from the “USER” table whose name field is “Tom Cruise.”
SELECT *
FROM user
WHERE first_name = ‘Ibrahim’;
Get all rows and columns from the “USER” table whose name field is either “Ibrahim”
or “Katie Holmes.”
SELECT *
FROM user
WHERE name = ‘Ibrahim’
OR name = ‘Katie Holmes’’;
Syntax
UPDATE FROM table_name
SET Attribute_Name=New_Value
WHERE column_name=value;