Quantcast
Channel: Altering and adding column to the table in sqlite3 - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Altering and adding column to the table in sqlite3

$
0
0

If I alter the table and add a new column will add the data be wiped off from that table.

ALTER TABLE MyTable ADD COLUMN noOfDays integer default 0 NOT NULL 

Will the above SQL command drop MyTable and then ALTER it with the noOfDays column or will it simply add the noOfDays column without dropping it.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>