Just a test.
先測試一下, 哈哈。
等有空&&有東西&&有心情時再寫。
先測試一下, 哈哈。
等有空&&有東西&&有心情時再寫。
posts - 3, comments - 10, trackbacks - 0, articles - 0 |
||||||||||||||||||||||
Just a test.
先測試一下, 哈哈。 等有空&&有東西&&有心情時再寫。 Feedback# re: Test 回復 更多評論2008-03-26 12:30 by Fred.LiangPlease explain the name magickway..
# re: Test 回復 更多評論2008-03-27 10:22 by Fred.Liang我本來的想法:
select A.name<個人信息..>, B.name, C.name from A, (select A.id, A.name from A where A.id in (select A.father_id from A where A.id=@id)) B, (select A.id, A.name from A, wife where wife.id=A.wife_id) C where A.id=@id 結果:得到個人姓名,父親姓名,母親姓名 注:A-個人信息表,wife-妻子表,@id-已知該人員id參數 問題來了,如果多個妻子和兄弟姐妹,那就很難寫了,我之前遇到這情況,現在寫不出來。
|
||||||||||||||||||||||