Useful SQL commands
Below are some additional SQL commands that can give you some info that are not possible from inside Open Enventory
OE Settings


CHANGING INFO OF MULTIPLE CHEMICALS
To return all chemicals borrow by somebody (borrowed_by_person_id)
SELECT * FROM chemical_storage WHERE borrowed_by_person_id=8UPDATE chemical_storage SET borrowed_by_person_id=NULL WHERE borrowed_by_person_id=8To change the owner info of a chemical (owner_person_id)
Find person_id using Console command line in PHPMyAdmin
Find storage ID using Console Command line in PHPMyAdmin
Show chemicals with multiple criteria
Change Responsible person for chemicals with multiple criteria
Show storage_name and storage_id using username
Update responsible person for chemicals in many location (storage)
Search for barcodes that are duplicated
Update/Get extra info for containers with duplicated barcode (continued from “Search for barcodes that are duplicated”)
REMOVE ALL CONTAINERS (BOTTLES) OF CHEMICALS


Find duplicated custom barcodes using SQL
Last updated
Was this helpful?