select planday,finishday from productinfo where productname='”&textbox1.text&"' 20
怎么去用datediff计算这两个值我自己倒腾出来了-.-d.commandtext=selectdatediff(day,planday,planfinishday)a...
怎么去用datediff 计算这两个值
我自己倒腾出来了-. -
d.commandtext=select datediff(day,planday,planfinishday)a,datediff(day,startday,finishday)b from productinfo where productname='”&textbox1.text&"'
........
dim b as sqlcl...sqlreader=a.executereader
if b.hasrows then
while b,read then
textbox2.text="计划需要"&b("a")&"天"&"实际用了"&"b("b")天"
end while 展开
我自己倒腾出来了-. -
d.commandtext=select datediff(day,planday,planfinishday)a,datediff(day,startday,finishday)b from productinfo where productname='”&textbox1.text&"'
........
dim b as sqlcl...sqlreader=a.executereader
if b.hasrows then
while b,read then
textbox2.text="计划需要"&b("a")&"天"&"实际用了"&"b("b")天"
end while 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询