当前位置:主页>销售管理软件> 列表

KTV计费:如何判断当前时间所在库中的那个时间段,并产生费 找免费商品管理软件

财务软件版1楼: 表comstimemode
cons_mode_code cons_time_star(datetime) cons_time_end(datatime) cons_time_mone
08 10:00:00 12:00:00 100
08 12:00:00 16:00:00 120
08 16:00:00 22:00:00 150
也就是根据当前时间,取出库中时间段的费用

下面的语句在delphi中不通过?报错
select cons_time_mone from constimemode where timevalue(cons_time_star)<=timevalue(now()) and timevalue(cons_time_end)>=timevalue(now())

2楼: 没人做过吗? 如免费商品管理软件

3楼: 090

4楼: 你的语法有问题吧
把你的完整代码贴出来

5楼: sqlserver裏哪裏有now?
用Getdate()

6楼: 就是判断当前时间在那个时间段,取出所在时间段的价钱

财务软件版7楼: 909