0
我有兩個表:SQLite的:查詢列出
表1:
ID_Number | Description|
a | abc
b | cde
c | fgh
表2:
ID | Title | value
a | phone number | 555-1234
a | address | somewhere USA
a | mobile_number | 867-5309
b | phone number | ...
b | address | ...
b | mobile_number | ...
我想創建一個新表屬於每個的所有數據存在於表2中的ID_number。
查詢我可以列出所有。
select Table1.ID_Number, Table2.ID from Table1, Table2
where Table1_ID_number = Table2.ID))
order by ID_Number
但我想創建一個新表:
Table3
|ID | Description| ID_data
a , abc, "Address_A_PhoneNumber_A_Mobile_Number_A"
b , cde, "Address_B_PhoneNumber_B_Mobile_Number_B"
這可能與SQL ???