Sei sulla pagina 1di 1

create table dist_centre_v

(
id_no number (6) constraint id_no_pk primary key,
n_person varchar2(20) constraint n_person_nn not null,
zip_code number(6) constraint zip_code_nn not null,
state varchar2(10) default'INDIA',
city varchar2(10) default 'INDIA'
)
ALTER table dist_centre_v
ADD state varchar2(20) default 'INDIA'
describe dist_centre_v
INSERT INTO dist_centre_v
VALUES(124,'Abdul',344004,'jaipur','Rajasthan')
INSERT INTO dist_centre_v
VALUES(125,'jaI',344044,'MADRAS','TAMIL NADU')
INSERT INTO dist_centre_v
VALUES(122,'MARUTI',344077,'PATNA','BIHAR')
SELECT * from dist_centre_v
Order by id_no
update dist_centre_v
set n_person='TOMMMY'
where state='U.P'
delete from dist_centre_v
where id_no
DELETE FROM dist_centre_v
where id_no=125
insert into dist_centre_v
values(&a,&s,&d,&f,&k)
delete from dist_centre_v
where

Potrebbero piacerti anche