#import <QuartzCore/CAAnimation.h>
self.BuyButtonPopUpView.frame = CGRectMake(self.BuyButtonPopUpView.frame.origin.x, 1000, self.BuyButtonPopUpView.frame.size.width,self.BuyButtonPopUpView.frame.size.height);
CABasicAnimation *animate = [CABasicAnimation animationWithKeyPath:@"shadowOpacity"];
animate.fromValue = [NSNumber numberWithFloat:1.5];
animate.toValue = [NSNumber numberWithFloat:0.5];
animate.duration = 1.0;
[self.BuyButtonPopUpView.layer addAnimation:animation forKey:@"shadowOpacity"];
self.BuyButtonPopUpView.layer.shadowOpacity = 0.0;
我如何执行这样的SQL查询?首先,它选择了成本最高的10辆汽车,然后将这10辆汽车重新排序到数据库中。
我试图搞清楚,但我无法掌握语法:P
答案 0 :(得分:2)
只需为子查询提供别名。
FirstVC
答案 1 :(得分:1)
This query will give you the desired results
SELECT * FROM ( SELECT * FROM cars WHERE site = 5
ORDER BY cost DESC LIMIT 0 , 10 ) as t ORDER BY time