It Is Object Level Command
It Is Object Level Command
• drop a column
alter table agent1 drop(country);
references agents(agent_code);
• modify columns
alter table orders modify customer_name varchar2(15);
• rename a column
alter table orders rename column payment to payment_mode;
• rename table
alter table orders rename to shoppers;
2. The DROP command not only removes the table but also
select b.*,
sum (weight) over (order by weight
rows between 1 preceding and current row
) running_row_weight,
sum (weight) over (order by weight
range between 1 preceding and current row) running_value_weight
from bricks b
order by weight, brick_id;