Software Testing

k2G9Eo9
RdZQRt6

Popular Posts

TRUNCATE

The SQL TRUNCATE TABLE command is used to delete complete data from an existing table. You can also use DROP TABLE command to delete complete table but it would remove complete table structure form the database and you would need to re-create this table once again if you wish you store some data.
The basic syntax is as follows:
TRUNCATE TABLE table_name
Employee
Emp_idNameSurnameSalaryDept_id
1RajeshKhanna450002
2SnehaGupta550004
3SandeepNehte950001
4KirtiPatil250003
5NileshJadhav450003
6DipeshDas350005
7KailashRane620001
8KavitaDeshpande480003
9SanjayDatt500003
10ShrutiHasan780001

Syntax For SQL:
TRUNCATE TABLE employee
After Execute: 
Empty set (0.00 sec)

No comments:

Post a Comment