Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (9k points)
What are CRUD Operations and how is it used in SQL?

1 Answer

0 votes
by (45.3k points)

CRUD stands for Create, Read, Update, and Delete. In SQL, the CRUD Operations are used in the following way:

  • Create: To create a table, the command is ‘CREATE TABLE tablename (column datatype)’
  • Read: To read data from a particular table, the command is ‘SELECT * from tablename’
  • Update: In order to make changes and update the data available in a table, the command is ‘UPDATE tablename set column1 = new_value where column2 = value’
  • Delete: To delete data from a particular column in the table, the command is ‘DELETE from tablename where column=value’

To learn in detail about SQL commands and operations and become a professional in it, watch:

Related questions

0 votes
1 answer
asked Jun 23, 2020 in Web Technology by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Jun 23, 2020 in Web Technology by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked May 7, 2020 in SQL by Praveen_1998 (119k points)
0 votes
1 answer
asked Dec 23, 2019 in SQL by anmolj (9k points)

Browse Categories

...