Solved Huge thanks to z3r010 - for Hedisql and stored procedures


jimbo45

Well-known member
Pro User
VIP
Local time
2:10 AM
Posts
5,799
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Big thanks to @z3r010 for telling me about heidisql -- it's hugely more flexible than I thought -- especially being able to show output of stored procedures in mariadb / mysql and being able to save directly as csv without having to create endless EXCEL queries !!! and then display directly in an excel worksheet.

For other who haven't heard of heidsql -- Free, excellent program (Windows of course) just

This makes it easy also to use loops etc so you can go for example all the tables in a database and display column info etc and send result to excel via csv etc.

From the sample classicmodels sample db simple stored procedure : just read all the products
DELIMITER //

CREATE PROCEDURE GetAllProducts()
BEGIN
SELECT * FROM products;
END //

DELIMITER ;

then in the sql box on heidisql just run CALL GetAllProducts();

output :

Screenshot_20230726_090908.png

and after copy as csv to clipboard (no need even to save the file)

Screenshot_20230726_091737.png

You've saved me weeks of labour intensive work !!!!! Thanks again -- shows one doesn't need to use expensive sql displaying and manipiulating programs when a really good free one is available.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Back
Top Bottom