Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi,
I have a sqlite database, and installed DB-Browser on my Debian 12. So, I would like to know if it is possible to copy the contents of a cell to others cells in the same row or column.

Specifically, all the cells in a column must have the same expression; only some do. I would like this to be the case for all the cells.

Thanks for your help!

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

@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;
You must be logged in to vote
0 replies
Answer selected by Fred02840
Comment options

Thank a lot, @justinclift! That's work!

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.