Results 1 to 2 of 2

Thread: need help in concatenation

  1. #1
    Join Date
    Sep 2010
    Posts
    188

    need help in concatenation

    Hi..

    I need help in concatenation.

    here is my code:

    Code:
    SELECT (SUM(TIMESTAMPDIFF(DAY, chemicalweighing_dateEntry, NOW()))), (SUM(TIMESTAMPDIFF(HOUR, chemicalweighing_dateEntry, NOW()))) - (SUM(TIMESTAMPDIFF(DAY,chemicalweighing_dateEntry, NOW())) * 24) AS age_day FROM kanban_data;
    the output of this is:

    57 204
    they are separated in between two columns.

    I want to combine them in one column like this:

    57 day(s) 204 hr(s) ago

    Thank you

  2. #2
    Join Date
    Mar 2012
    Posts
    59
    you must select them one by one or select them as a model. then model.day and model.hr!


    Rotary dryer | Cement plant | Stone crushing plant | Classifier

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •