Editing records in a database
Webmin allows you to quickly edit data in your PostgreSQL database through a simple interface. In this recipe, we will demonstrate how to add, edit, and delete records in a database table.
Getting ready
In this recipe, we will use examples based on the testdb
database and people
table created in the recipe, Editing the structure of your database.
How to do it...
We'll add a record to the people
table of the testdb
database; we'll edit the same record, and finally delete it to show how to perform these actions in Webmin.
Perform the following steps to add a row to a database table:
Navigate to Servers | PostgreSQL Database Server.
Click the icon that represents the
testdb
database.Click the icon that represents the
people
table.Click the View Data button.
Click the Add row button.
Fill in a numeric
id
and type in aname
in the text box.Click the Save button.
Perform the following steps to edit a row:
Navigate to Servers | PostgreSQL Database Server.
Click the icon that represents...