Sobes.tech
Middle

What queries are included in the CRUD group of SQL language?

sobes.tech AI

Answer from AI

CRUD — these are the basic data operations corresponding to four types of SQL queries:

  • CreateINSERT — adding new records to a table.
  • ReadSELECT — retrieving data from a table.
  • UpdateUPDATE — modifying existing records.
  • DeleteDELETE — removing records from a table.

Example:

-- Create
INSERT INTO users (name, age) VALUES ('Ivan', 30);

-- Read
SELECT * FROM users WHERE age > 25;

-- Update
UPDATE users SET age = 31 WHERE name = 'Ivan';

-- Delete
DELETE FROM users WHERE name = 'Ivan';
What queries are included in the CRUD group of SQL… - sobes.tech