Commit 33147a97 by TongZuu

inti script Routing

parent a53ef61d
...@@ -2,11 +2,11 @@ IF OBJECT_ID ( 'time_in_zone', 'FN' ) IS NOT NULL ...@@ -2,11 +2,11 @@ IF OBJECT_ID ( 'time_in_zone', 'FN' ) IS NOT NULL
DROP function time_in_zone; DROP function time_in_zone;
go go
/* return 1 = true , 0 = false */ /* 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 RETURNS int
AS AS
BEGIN BEGIN
IF @beg_zone <= @mytime and @mytime <= @endzone IF @beg_zone <= @mytime and @mytime <= @end_zone
BEGIN BEGIN
return 1; return 1;
END 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