r/DatabaseHelp • u/Bluhb_ • Sep 24 '20
Reinserting every row of table
Hello,
I'm building an application that will store it's settings in a DB. Now I'm looking at changing these settings. From the menu where you can change the settings I get all settings when they are applied. My plan was to just drop the settings table (or delete every row, what's better?) and then recreate the table with the new settings.
Is dropping and recreating a table considered bad practice? Because it sure feels like it. Is there any other(better) way to do something like this?
Kind regards and thanks in advance!
Bluhb_
2
Upvotes
View all comments
Show parent comment
2
u/Bluhb_ Sep 24 '20
Okay! Good to know! I wasn't completely sure and google didn't gave me a good answer.
Also happy to know this is good practice, because it makes my life so much easier haha