Jul 1, 2014 #1 chillay Programmer Jun 27, 2002 102 US Hello Can anyone write a MYSQL query that is somewhat equivalent to the following? CREATE PROCEDURE CountPhoneNumbers AS DECLARE @count INTEGER SELECT @count = COUNT (*) FROM Customer WHERE HomePhone IS NOT NULL Print @count Thank you!
Hello Can anyone write a MYSQL query that is somewhat equivalent to the following? CREATE PROCEDURE CountPhoneNumbers AS DECLARE @count INTEGER SELECT @count = COUNT (*) FROM Customer WHERE HomePhone IS NOT NULL Print @count Thank you!
Jul 1, 2014 #2 jpadie Technical User Nov 24, 2003 10,094 FR Code: DELIMITER // CREATE PROCEDURE CountPhoneNumbers() BEGIN SELECT COUNT(*) FROM Customers WHERE HomePhone IS NOT NULL; END // DELIMITER ; Upvote 0 Downvote
Code: DELIMITER // CREATE PROCEDURE CountPhoneNumbers() BEGIN SELECT COUNT(*) FROM Customers WHERE HomePhone IS NOT NULL; END // DELIMITER ;
Jul 1, 2014 Thread starter #3 chillay Programmer Jun 27, 2002 102 US Thank you Jpadie. Upvote 0 Downvote