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

what is heap table? : Sql dba

612


What is the use of index in hive?

551


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

554


What is pl sql package?

600


What is sap sql anywhere?

535






How can you create an empty table from an existing table?

597


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

555


Explain isolation levels. : Transact sql

579


What is database sql?

545


How can I delete duplicate rows?

567


Explain how to use transactions efficiently : transact sql

529


What is the use of double ampersand (&&) in sql queries? Give an example

613


How do I order by ascending in sql?

542


What are sql ddl commands?

552


Why is %isopen always false for an implicit cursor?

573