Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Browse mode
Customize browse mode.
Browse mode
Documentation Use only icons, only text or both. Restore default value
Documentation Use only icons, only text or both. Restore default value
Documentation Whether a user should be displayed a "show all (rows)" button. Restore default value
Documentation Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown. Restore default value
Documentation SMART - i.e. descending order for columns of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise. Restore default value
Documentation Highlight row pointed by the mouse cursor. Restore default value
Documentation Highlight selected rows. Restore default value
Documentation Restore default value
Documentation Restore default value
Documentation Repeat the headers every X cells, 0 deactivates this feature. Restore default value
Documentation Maximum number of characters shown in any non-numeric column on browse view. Restore default value
Documentation These are Edit, Copy and Delete links. Restore default value
Documentation Whether to show row links even in the absence of a unique key. Restore default value
Documentation Default sort order for tables with a primary key. Restore default value
Documentation When browsing tables, the sorting of each table is remembered. Restore default value
Documentation For display Options Restore default value
SELECT * FROM `stock_changes` ORDER BY `reference_id` DESC 
Edit inline ] [ Edit ] [ Explain SQL ] [ Create PHP code ] [ Refresh ]
Full texts id product_id type quantity reference_type
proforma_invoice, stock_topup, product_edit, invoi…
reference_id Descending Ascending 1 reference_display
e.g. Proforma PF-2025-001
created_at branch_id
Edit Edit Copy Copy Delete Delete
DELETE FROM stock_changes WHERE `stock_changes`.`id` = '19ad402e-7ab8-41e4-8dd8-2e0e319292db'
19ad402e-7ab8-41e4-8dd8-2e0e319292db 66b9d0f4-f29d-4cc8-8e49-e8b38b1f1437 in 480 product_create 66b9d0f4-f29d-4cc8-8e49-e8b38b1f1437 New product: Fuel Injector Cleaner 2026-04-10 21:27:53 40e34208-0e98-4c0d-be45-deff7dc0babc
Edit Edit Copy Copy Delete Delete
DELETE FROM stock_changes WHERE `stock_changes`.`id` = '0238c01c-db7c-42f0-be8f-1d4b8596bcb3'
0238c01c-db7c-42f0-be8f-1d4b8596bcb3 66b9d0f4-f29d-4cc8-8e49-e8b38b1f1437 out 1 invoice 59a22a1d-edb2-42a7-95b2-873489a3d8bb Invoice INV-2026-001 2026-04-12 17:56:20 40e34208-0e98-4c0d-be45-deff7dc0babc
Edit Edit Copy Copy Delete Delete
DELETE FROM stock_changes WHERE `stock_changes`.`id` = 'f9e28bb6-a797-4048-9b9f-b8fca8e25772'
f9e28bb6-a797-4048-9b9f-b8fca8e25772 2d3f1848-4d0b-4791-a618-c63e32945b79 out 3 invoice 59a22a1d-edb2-42a7-95b2-873489a3d8bb Invoice INV-2026-001 2026-04-12 17:56:20 40e34208-0e98-4c0d-be45-deff7dc0babc
Edit Edit Copy Copy Delete Delete
DELETE FROM stock_changes WHERE `stock_changes`.`id` = '409a9443-4fca-49ba-afa4-27814ad04231'
409a9443-4fca-49ba-afa4-27814ad04231 2d3f1848-4d0b-4791-a618-c63e32945b79 in 3 product_create 2d3f1848-4d0b-4791-a618-c63e32945b79 New product: GASKET, EXHAUST PIPE 2026-04-10 20:49:52 40e34208-0e98-4c0d-be45-deff7dc0babc
With selected: With selected:
Query results operations Copy to clipboard Copy to clipboard Export Export Display chart Display chart Create view Create view
Bookmark this SQL query Bookmark this SQL query