SQL Alter Table
Home
SQL Basics:
SQL HOME
SQL Introduction
SQL Select
SQL Where
SQL And & Or
SQL Between
SQL Distinct
SQL Order By
SQL Try It
SQL Insert
SQL Update
SQL Delete
SQL Count
SQL Advanced:
SQL Functions
SQL Group By
SQL Aliases
SQL Join
SQL Create
SQL Alter
SQL Quiz Test
Resources:
SQL Books
SQL Alter Table
Alter Table
The ALTER TABLE statement is used to add or drop columns in an existing
table.
ALTER TABLE table_name
ADD column_name datatype
ALTER TABLE table_name
DROP column_name
Person:
LastName
FirstName
Address
Pettersen
Kari
Storgt 20
Example
To add a column named "City" in the "Person" table:
ALTER TABLE Person ADD City varchar(30)
Result:
LastName
FirstName
Address
City
Pettersen
Kari
Storgt 20
Example
To drop the "Address" column in the "Person" table:
ALTER TABLE Person DROP Address
Result:
LastName
FirstName
City
Pettersen
Kari
Jump to : Top Of Page or HOME.
We Help you for free. Please Help us!
Help us correct errors
Help us with spelling and grammar
Tell us what you think
Link to us from your pages
All information in this Web is for training only. We do not make any warranties of its correctness or
its fitness to be used. The risk of using it remains with the user.
Copyright © 1999-2001 by Refsnes Data. All Rights Reserved.
More Tutorials:
HTML XHTML
XML XSL
CSS DTD
WAP WML
JavaScript
DHTML Flash
VBScript ASP
SQL AppML
News:
The Future ofProgramming
Web Security
Browser News
Web Standards
References:
HTML 4.01 Ref
XHTML 1.0 Ref
WML 1.1 Ref
CSS Reference
XSLT Elements
ASCII Reference
Entity Reference
HTML Colors
Color Values
Color Names
WAP Pages
Validation:
HTML XHTML
CSS DTD
XML WML
About W3Scripts
Please link to us
Larger Text?
XML Partners:
Wyszukiwarka
Podobne podstrony:
sql functions aspsql groupby aspsql orderby aspsql alias aspsql create aspsql where aspsql quiz aspsql count aspsql select aspsql distinct aspsql insert aspsql join aspsql update aspsql intro aspsql tryit aspsql?lete aspsql and or aspsql framework aug94więcej podobnych podstron