CName | AddressLine
-------------------------------
John Smith | 123 Nowheresville
Jane Doe | 456 Evergreen Terrace
John Smith | 999 Somewhereelse
Joe Bloggs | 1 Second Ave
如果我有這個表可以做一個選擇把這樣SQL問題 - 一個名字在同一表2個地址
CNAME | Address1 | Address2
John Smith | 123 Nowheresville | 999 Somewhereelse
我使用的是Oracle
哪個數據庫? – Gerrat 2011-02-11 20:35:57
如果你有3個或更多? – 2011-02-11 20:36:13
@user - 每個`CName`最多有2個AddressLines?你怎麼知道哪個是1,哪個是2,還是這是隨意的? – 2011-02-11 20:36:34