Excuse me to the second row inserted into the first line of KPDXZH LZJG values, statements should how to write?
Diagram to simplify the sample forms, more than the actual table has similar situation, through jyls field to distinguish
CodePudding user response:
How to distinguish which is the first line, which is the second line? Or, according to which (some) field sort?CodePudding user response:
Update the ls tThe set KPDXZH=(select LZJG from ls where jyls=t.j yls)
Where the exists (select 1 from the ls where jyls=t.j yls)
CodePudding user response: