不同方式的Mysql计数性能

时间:2017-01-01 08:02:19

标签: mysql concurrency count

Mysql count 可以以不同的方式使用。以下是我们可以使用的3种方法。

  1. func BuyButton(sender:UIButton) { print("clicked cell is at row \(sender.tag)") let indexPath = NSIndexPath(row: sender.tag, section: 0) let currentCell = tableView.cellForRow(at: indexPath as IndexPath) as! CustomCell let Storyboard = UIStoryboard(name: "Main", bundle: nil) let PaymentController = Storyboard.instantiateViewController(withIdentifier: "PaymentViewController") as! PaymentViewController print(currentCell.Test.text!) //prints fine here PaymentController.RecordTitle = currentCell.Test.text! self.presentViewController(PaymentController, animated: false, completion: nil) }

  2. SELECT COUNT(table_1.id) FROM <data set with many joints>;

  3. SELECT COUNT(*) FROM (SELECT table_1.id FROM <data set with many joints>);

  4. 上述查询的效果是否有任何差异?有人可以解释考虑并发吗?

0 个答案:

没有答案