Person_Table
Name Sex Age
hl 0 20
lh 1 25Sex_Table
ID Description
0 Male
1 Female当我查询数据库DATA时候,显示:Name Sex Age
hl Male 20
lh Female 25像MS-Access的LOOK-UP table 功能一样.Thanks
Name Sex Age
hl 0 20
lh 1 25Sex_Table
ID Description
0 Male
1 Female当我查询数据库DATA时候,显示:Name Sex Age
hl Male 20
lh Female 25像MS-Access的LOOK-UP table 功能一样.Thanks
select p.Name,s.Sex,p.Age from Person_Table p,Sex_Table s where p.sex=s.sex
select p.Name,s.Description,p.Age from Person_Table p,Sex_Table s where p.sex=s.ID
MS-Access 只要打开TABLE就可以看到结果,不需要执行query,只不过是改一下LOOKUP属性,如绑定PERSON_TABLE.SEX和SEX_TABLE.ID,但在PERSON_TABLE中的SEX属性显示的是相应SEX_TABLE.DESCRIPTION的值,不知道ORACLE是否也有这种功能?