Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

Creating table:-

Create table student(sno number(9),name varchar2(14),class varchar2(5),age


number(2),gender varchar2(5),percentage number(5));

Describing a table:-
SQL>desc <student>

Insert a data into a table:-


SQL>insert into student values
(sno,’&name’,’&class’,&age,’&gender’,&percentage);

SQL>/Enter

Viewing records:-
SQL>select * from student;

Altering the records in the table student:-


Alter the student adds (city varchar (9));

You might also like