Remove some records (test plots) from existing sqlite .db file

  • Asked
  • Active
  • Viewed 6053 times
0

We would like to remove some records from existing sqlite .db file. Could you please explain how to implement this removing?

0

Accepted answer

Dear Haraguchi,

As of now there is no easy way to do this, we will be adding a function to do this in coming versions,

Right now, as we don't have a better way, you will need to install the "SQLite Database Browser" application so that you can remove the records directly from the database.

Open the application and then open the Collect Earth database ( located in the file C:\Users\SanchezPausDiaz\AppData\Roaming\CollectEarth\collectEarthDatabase.db )

Once you open the database find the ID of the survey in the ofc_survey table.

Then you can run the query :

delete from ofc_record where of_survey_id = 1 and key1=PLOT_ID

Substitute PLOT_ID with the ID of the record you want to remove.

alt text

alt text

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.