how to remove records from table?
no name
1 a
2 b
1 a
2 b
3 c

Answer Posted / hannan oca

delete from tablename; will remove all records but we can
rollback these values.

truncate tablename; will remove all records but we cannot
rollback the table values if we want that values in future.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what does plv msg allows you to do?

662


How do I view a table in sql?

542


What is indexing in sql and its types?

541


What is full form of rtm?

530


What is query execution plan in sql?

563






What is sql lookup?

511


What is sql prepared statement?

542


Explain the purpose of %type and %rowtype data types?

503


Explain isolation levels. : Transact sql

575


Is natural join same as inner join?

505


how can you create an empty table from an existing table? : Sql dba

656


What is left join in sql?

578


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

750


What is the sql query to display the current date?

548


What are the different type of joins in sql?

540