alter table, add column - Oracle Example Syntax

By M&S Consulting (Ashok) on Apr 28th, 2009
Filed Under Technical Tips // Tags:

Following is simple example syntax for adding a column to an Oracle table using “alter table” SQL:

1
2
ALTER TABLE [my_table_name]
ADD [my_column_name] [my_data_type];

A simple example would be:

1
2
ALTER TABLE employee
ADD tps_reports_completed number;
Bookmark and Share

Related Information:

  1. Oracle Rename Column - alter table, rename column Example SQL Syntax

    Following is simple example syntax for renaming a column to an Oracle table using "alter table" SQL:

    ALTER...
  2. Oracle Rename Table - Example Syntax and Dependencies
    Renaming a table in Oracle is simple. Following is the generic Oracle table rename syntax: 1 ALTER TABLE current_table_name RENAME...
  3. Copy Table Columns and Data
    As you may know, in Oracle the syntax from creating a table that is the same as another is: 1...
  4. Oracle SUBSTR with INTSR Function - SQL Syntax Examples
    Oracle SUBSTR and INSTR SQL functions are typically used together in practice for parsing a string. Following are...
  5. Oracle TO_DATE Function - SQL Syntax Examples
    The Oracle TO_DATE SQL function is used to convert a TEXT or NTEXT representation of a date into an Oracle...
  6. SQL LIKE - Oracle LIKE Operator - SQL Syntax Examples
    The reserved word LIKE in Oracle SQL represents an operator that performs some basic matching on text. LIKE provides a...
  7. Oracle IdM - SAML SSO with Google Apps
    We recently integrated Oracle IdM with the SAML SSO Service from Google Apps. Now customers can continue to authenticate against...

Leave a Reply


Archives

Recent Comments

  • Kavitha Muniraj said: Hi, Could you please send a script which checks the status of forms and reports of oracle...
  • Siddharth said: Hey thanks a lot !! Have been lookin all over for this :) My PC may not be able t handle FlashBuilder...
  • Cyrex said: Hey man why I cant install Apex 4? is there anyone can help me.,?
  • sharanabasava said: ALTER TABLE [my_table_name] RENAME COLUMN [current_column_name] TO [new_column_name]; Sir,I...
  • Huub Vankan said: Thanks for this easy solution. Indeed strange that is does not work in the (x86) folder….

Calendar

July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  

Featured Testimonial

"M&S has taken 'partnership' to a new level. They are not only a deeply skilled service provider, the M&S team is actually a mission critical component to our operations, taking on new initiatives as well as maintaining custom, open source, and COTS solutions."

CEO, MedPivot

Free SQL Service