Join SQL Server tables on a like statement

后端 未结 4 2056
清酒与你
清酒与你 2021-02-19 18:37

I am hoping this isn\'t a repeat. I\'ve checked the searches and I can\'t seem to find a clear answer to this.

I have a table that has it\'s primary key set to be a

4条回答
  •  鱼传尺愫
    2021-02-19 19:22

    You may get a performance improvement if you build a temp table first, with the option to index the temp table. You could then also modify the schema (of your temp table) which could give you options on your join. Often when joining to BIG tables it helps to extract a subset of data to a temp table first, then join to it. Other times the overhead of the temp table is bigger than using an 'ugly' join

提交回复
热议问题