Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
DELIMITER // CREATE PROCEDURE temp_cucumber_calc() BEGIN DECLARE dry_mass DECIMAL(10, 2); DECLARE new_weight DECIMAL(10, 2); SET dry_mass = (100 - 99) * 100 / 100; SET new_weight = dry_mass / ((100 - 98) / 100); SELECT new_weight AS result; END // DELIMITER ; CALL temp_cucumber_calc(); DROP PROCEDURE temp_cucumber_calc; -- ПРАВИЛЬНЫЙ вызов функции: SELECT calculate_cucumber_weight(100, 99, 98) AS new_weight;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear