Sharp Tutorial
Table alter SQL

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

SQL

  • SQL home
  • SQL introduction
  • SQL install and Run
  • create table
  • drop table
  • alter table
  • Insert into table
  • select query
  • Where Clause
  • Order By /Group By
  • Delete Query
  • Update query
  • Aggregate Function
  • Join Tables
  • SQL Examples
  • SQL Exercise

DBMS

SQL Table alter

alter table is the command to modify the structure of the table. Add new column or delete existing column

Add Column

new column may be added in the table                                                                                                                    Syntax: alter table add(field-name type(size), field2,….);

 
   alter table login add (usermode varchar(20));
 

Above query add a new column in the given table as per following.

Delete Column

existing column may be deleted from the table                                                                                                       Syntax: alter table drop(field-name , field2,….) 


    alter table login drop type;


Above query deletes  a column from the given table as per following.select ok after execution the query.

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial