这个update怎么写? update take set balance = balance - 1 where id ='a' and balance>0 and cdate =(select max(cdate) from take where id='a' and balance>0) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update take set balance = balance - 1 where id ='a' and cdate =(select min(cdate) from take where id='a' and balance>0) update take set balance = balance - 1 where id ='a' and balance>0and cdate = (select max(cdate) from take where id='a' and balance>0) 求学,实现查询记录数 急求一条SQL语句!!在线等……马上给分!! 求一查询SQL语句! 数据库备份路径不存在时,备份失败如何解决呢? 恢复问题:只有.mdf文件,没有了.ldf文件 请问:怎样把更新的数据存到数据库里? 小弟建了一个视图,是通过合并数十张表中的ID记录生成的,能否通过该视图找到每条记录各自的出处(即:它们来自于哪些表)。 怎样得到主键、索引、约束等的内容?sql怎么写? 关于行变列的数据插入问题,难 这种横排显示SQL查询语句写法? 交叉表查询问题 关于排名问题!!!(急)
and cdate = (select max(cdate) from take where id='a' and balance>0)