I got this procedure :
DELIMITER $$
CREATE PROCEDURE `countRows`(IN v varchar(30))
BEGIN
SET @t1 =CONCAT("SELECT COUNT(*) FROM ",V);
PREPARE stmt3 FROM @t1;
EXECUTE stmt3;
DEALLOCATE PREPARE stmt3;
END$$
DELIMITER ;
And I want this to return the query in this format : "The table X contains Y Rows" I tried to use the concat function but it just don't work for me.
Some tips? Thanks