44万数据测试

两个存储过程内容如下:
1、
select note from table where cityID='1'

2、
WITH temp AS
(
    SELECT * FROM city WHERE cityid=1
    UNION ALL
    SELECT city .* FROM city
    INNER JOIN temp ON city .professionParent=temp.cityid
)
SELECT table .note  FROM table
INNER JOIN temp ON table .cityid=temp.cityid

那个执行速度最快

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-07-09
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2021-09-23
  • 2021-05-27
  • 2022-02-13
  • 2021-10-03
  • 2022-12-23
相关资源
相似解决方案