select IF(0 > 0, 'True', 'False') as message;
Friday, October 3, 2025
if exist drop and create database in MySql
create DATABASE IF not EXISTS test2;
drop DATABASE IF not EXISTS test2;
What is called t1 and t2 in join
Select * from table1 t1 inner join table t2 on t1.id = t2.id
Here t1 and t2 are called alias.
Wednesday, October 1, 2025
How to create stored procedure in MySql and how to call stored procedure
DELIMITER $$
CREATE PROCEDURE new_procedure_procedure_name()
BEGIN
SELECT *
FROM test.new_table t1
LEFT JOIN test1.table1 t2 ON t1.id = t2.id;
END $$
DELIMITER ;
===============================
CALL new_procedure_procedure_name();
Subscribe to:
Posts (Atom)
