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

How many joins in sql?

554


what is msql? : Sql dba

564


What trigger means?

565


Do we need to create index on primary key?

465


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

658






What is dense_rank in sql?

544


What are the advantages of normalization?

556


Are dml statements autocommit?

550


what are the types of subquery? : Sql dba

587


What is oracle sql developer?

604


What is self-join and what is the requirement of self-join?

632


what are aggregate and scalar functions? : Sql dba

551


What is the use of & in pl sql?

536


What is multiple partition?

538


What are procedures used for?

527