Commit 33147a97 by TongZuu

inti script Routing

parent a53ef61d
......@@ -2,11 +2,11 @@ IF OBJECT_ID ( 'time_in_zone', 'FN' ) IS NOT NULL
DROP function time_in_zone;
go
/* return 1 = true , 0 = false */
CREATE FUNCTION time_in_zone(@mytime datetime ,@beg_zone datetime , @endzone datetime)
CREATE FUNCTION time_in_zone(@mytime datetime ,@beg_zone datetime , @end_zone datetime)
RETURNS int
AS
BEGIN
IF @beg_zone <= @mytime and @mytime <= @endzone
IF @beg_zone <= @mytime and @mytime <= @end_zone
BEGIN
return 1;
END
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment