Chapter 5. Alter: Rewriting the Past
Ever wished you could correct the mistakes of your past? Well, now is your chance. By using the ALTER command, you can apply all the lessons youâve been learning to tables you designed days, months, even years ago. Even better, you can do it without affecting your data. By the time youâre through here, youâll know what normal really means, and youâll be able to apply it to all your tables, past and present.
We need to make some changes
Greg wants to make a few more changes to his table, but he doesnât want to lose any data.
Yes, you can use ALTER TABLE to add it easily.
In fact, we think you should take a stab at it yourself since youâve already met the ALTER
command. Do the next exercise to get your code!
Get Head First SQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.