0 votes
1 view
in SQL by (3.3k points)

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

1 Answer

0 votes
by (6.8k 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
0 votes
1 answer
0 votes
1 answer
asked Jul 17, 2019 in SQL by Tech4ever (20.3k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...