roaddog Posted December 20, 2014 Share Posted December 20, 2014 Hello all. So recently I always use SQL for storing data. Sometimes i want to insert a new column into an existing table if I want to update table, but the only way i can seem to do that is if i drop the table and re-create the table with the added column which results in all the data in the table being lost. I was wondering if anyone knows how to add a column to the table without having to drop it and re-create it? Thanks Link to comment
TAPL Posted December 20, 2014 Share Posted December 20, 2014 Use ALTER. http://www.w3schools.com/sql/sql_alter.asp Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now