Need to pass the query number, our letter out all related to this letter Numbers (directly or indirectly) the number of the letter,
Our letter information:
(Ref Number Number may be many-valued reference letter, from the letter Number or other information in our letter letter information in the file Number, I add a multivalued refer to columns,
The other letter information:
(Ref Number Number may be many-valued reference letter, from the letter Number or other information in our letter letter information in the file Number, I add a multivalued refer to columns,
The present question is that how to use the query number, our letter out all related (directly or indirectly) the number of the letter, now my idea is through our correspondence number in the reference letter number, all queries related to this letter our correspondence with each other, and then through the check to the letter of reference letter number (may) for multiple values to query our and the other related letter number, query over and over again, until there is no reference to letter number, don't know how to operate this cycle query,
Or you great god is there a better way, by querying a letter number to query all the related letter codes in the two tables, thanks a lot!!!!! The grateful
PS (I added more than one value in it refer to the column, if after insert hyperlinks, there will be a problem,)
CodePudding user response:
Legend as unclear what do you want to expressCodePudding user response: