Practical 3
Practical 3
2023-24
Name:Yash Lalchandani
Rollno :23MCA027
Practical_3
Table altered.
7. Make a new table from the old table with the same structure.
SQL> create table sp2
as
select * from salespeople;
Table created.
10 rows selected.
10 rows selected.
8. Delete all the records from the table
SQL> delete from sp2;
10 rows deleted.
no rows selected
The TRUNCATE TABLE command deletes the data inside a table, but not the
table itself.
===============================
10. Create a table with the CHECK constraint
Table created.
1 row created.
10 rows selected.
=============================
SQL> select * from Customer;