MySQL Forums
Forum List  »  Stored Procedures

Re: How to replace in syntax when calling stored procedure?
Posted by: Devart Team
Date: August 15, 2012 03:51AM

You can use this one -

SELECT
  COUNT(DISTINCT SN)
FROM
  tester
WHERE
  Date > STR_TO_DATE(CONCAT(yr, mth, '01'), '%Y%m%d') AND Date < STR_TO_DATE(CONCAT(yr, mth, '01'), '%Y%m%d') + INTERVAL 1 MONTH;

Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to replace in syntax when calling stored procedure?
1001
August 15, 2012 03:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.