mysql - Trying to figure out how to create this procedure -
i can't seem figure out , i've been @ sometime great thank you.
i have prepare simple procedure accepting 1 parameter, date value, , using date addition functions in sql (mysql if possible) return parameter value minus 1 day
create procedure get_date begin date_add(date,interval expr type) end; / exec get_date
this come far. appreciated.
that question not select statement (ie, computing minus 1 day); need sql procedure.
maybe create function
create function simplefunction (s datetime) returns datetime deterministic return date_sub(s, interval 1 day); select simplefunction (anydate);
Comments
Post a Comment