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

解决方案 »

  1.   

    --关联查询不就得了
    select p.Name,s.Sex,p.Age from Person_Table p,Sex_Table s where p.sex=s.sex
      

  2.   

    --上面写错了字段
    select p.Name,s.Description,p.Age from Person_Table p,Sex_Table s where p.sex=s.ID
      

  3.   


    MS-Access 只要打开TABLE就可以看到结果,不需要执行query,只不过是改一下LOOKUP属性,如绑定PERSON_TABLE.SEX和SEX_TABLE.ID,但在PERSON_TABLE中的SEX属性显示的是相应SEX_TABLE.DESCRIPTION的值,不知道ORACLE是否也有这种功能?
      

  4.   

    没有,动动手写写SQL,活动活动手脚。