asp+access的语句怎么改成asp+sql
sql6="SELECTid,username,(selectsum(billzhff)fromx_view_billwherex_view_bill.username=...
sql6="SELECT id, username,(select sum(billzhff) from x_view_bill where x_view_bill.username=a.username and sendornot='已发货') AS sumzhf, "&_
"(select sum(kjzhf) from x_huanlipinn where x_huanlipinn.username=a.username) AS sumkjzhf, "&_
"(IIf(IsNull(sumzhf),0,sumzhf)-IIf(IsNull(sumkjzhf),0,sumkjzhf)) AS leftzhf "&_
"FROM x_huiyuan AS a where username='"&session("username")&"' "
以上是asp+access的语句,我改成asp+sql2012数据库就不行了。。请哪个帮忙给我看看应该怎么改呢? 展开
"(select sum(kjzhf) from x_huanlipinn where x_huanlipinn.username=a.username) AS sumkjzhf, "&_
"(IIf(IsNull(sumzhf),0,sumzhf)-IIf(IsNull(sumkjzhf),0,sumkjzhf)) AS leftzhf "&_
"FROM x_huiyuan AS a where username='"&session("username")&"' "
以上是asp+access的语句,我改成asp+sql2012数据库就不行了。。请哪个帮忙给我看看应该怎么改呢? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询