Skip to content

How to modify a database ? #3901

Answered by justinclift
Fred02840 asked this question in Q&A
Discussion options

You must be logged in to vote

@Fred02840 For changing all of the values in a column to the same value, you can probably use this SQL in the Execute SQL tab.

You'll need to change the tablename, column_name, and new_value items in the below snippet before running it.

And make sure you take a complete backup of your SQLite database file first, as there is no undo, and it might take a few attempts for you to get it doing what you want. 😄

UPDATE tablename SET column_name = new_value;

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Fred02840
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants