City Suvidha...your one stop Search

SQL PL/SQL

Here is the list of commands in SQL and PL/SQL. You need to navigate  between the pages to download. You can also have the other concept material like a C file, RDBMS file, a Data Structure File or an information technology.

Create Command
Create command is used to create a Table or a relation.
Syntax: Create table tablename (Field1 datatype, Field1 datatype,……., Field n datatype)

SQL> create table emp (eno number (8), ename varchar2 (20), esal number (10));

Table created.

Describe Command
Describe command is used to see the description of a table.
Syntax: Desc tablename

SQL> desc emp;

Name Null? Type
------------------------------- -------- ----
ENO NUMBER(8)
ENAME VARCHAR2(20)
ESAL NUMBER(10)

Insert command
Insert command is used to insert the values in a table.
Syntax: insert into tablename values (value1, value2,….., value n)

SQL> insert into emp values (&eno,'&ename',&esal);
Enter value for eno: 1
Enter value for ename: suresh
Enter value for esal: 20000
old 1: insert into emp values(&eno,'&ename',&esal)
new 1: insert into emp values(1,'suresh',20000)

1 row created.

SQL> /
Enter value for eno: 2
Enter value for ename: ajay
Enter value for esal: 15000
old 1: insert into emp values(&eno,'&ename',&esal)
new 1: insert into emp values(2,'ajay',15000)

1 row created.

SQL> /
Enter value for eno: 3
Enter value for ename: vijay
Enter value for esal: 18000
old 1: insert into emp values(&eno,'&ename',&esal)
new 1: insert into emp values(3,'vijay',18000)

1 row created.

SQL> /
Enter value for eno: 4
Enter value for ename: arun
Enter value for esal: 17
old 1: insert into emp values(&eno,'&ename',&esal)
new 1: insert into emp values(4,'arun',17)

1 row created.

 
 
 

 

 

 

 

 

 

 

 

 

 

 

 


Next  >>  

If any of you want to submit your programs and contribute to site please mail us at:

citysuvidha@gmail.com

You can download all the programs in a zip file also. For this you have to do one thing. Just register at the citysuvidha forum  and start any thread of any topic.  Once you start the thread and put your request, admin will automatically send you the desired zip file.