這是我確切的SQL代碼,但它是非常緩慢的,我知道這很可怕......加快/更有效地SQL
是否有另一種方式來做到這一點,但速度更快?
UPDATE Customer SET Title = "MR", SurName = "Test", FirstName ="Bob", HomePostCode ="SW18" WHERE CustomerID IN (SELECT CxID FROM Production WHERE policy_number = "001C5T" AND member_number = "100" AND family_group = "000001" AND CxID > 0)
感謝
你有沒有在子選擇中命名的列上設置索引? –
是的,他們都有相關的指標。 – ojsglobal