How to delete the records?

To delete the records in a table, use the SQL statement, DELETE with the following syntax

Syntax

DELETE FROM tabelname WHERE condition;

Example

Write the SQL statement to delete the record of the book having book number 105. 

USE demodb;

DELETE FROM book WHERE booknumber=105;

Comments

Popular posts from this blog

What SQL can do?

What are different data types to manage data in the columns or fields?

What is SQL?