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 to rename a column in the output of sql query?

734


What schema means?

672


what is the difference between cluster and non cluster index? : Sql dba

724


what is the syntax for using sql_variant_property? : Transact sql

699


What is data definition language?

797






what is query cache in mysql? : Sql dba

750


What is the life of an sql statement?

715


What is foreign key sql?

739


what is collation? : Sql dba

794


What is a relationship and what are they?

778


what is unique key constraint? : Sql dba

732


how to create a new view in mysql? : Sql dba

678


How does an execution block start and end in pl sql?

670


Is progress software supports to ( pl/sql )?

710


Which version of sql do I have?

744