Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (4k points)

How can I add a computed column to a table that already exists?

1 Answer

0 votes
by (8.7k points)

This can be easily achieved by using Alter keyword,

Let’s have look:

For example, we want to add GDP to the Table name as Nation:

alter table Nation

add [GDP] as (**COLUMN-SQL**)

To Explore More About this, Checkout SQL certification by Intellipaat.  

 

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 17, 2019 in SQL by Tech4ever (20.3k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...