Unable to join two oracle tables

后端 未结 1 1114
生来不讨喜
生来不讨喜 2021-01-26 16:50

i have 2 tables. First table SEC_SEAL_LOG with columns:

DATA_ADD,
DATA_AREA,
SEAL_NUMBER,
DATA_SEALING,
DATA_UNPLUG,
SORRUPTED.
SEC_WRITING_OFF_SEALS 


        
相关标签:
1条回答
  • 2021-01-26 17:18

    The error Column Ambiguously Defined occurs when a column name is present in more than one table, and you have failed to specify which table.

    You are doing that in this line: and SEAL_NUMBER = SEAL (which you have twice).

    From which table to you want to compare that SEAL value?

    Write it as SEC_SEAL_LOG.SEAL or SEC_WRITING_OFF_SEALS.SEAL or whatever table name you are trying to compare this value from, and it will get rid of the Column Ambiguously Defined error.

    0 讨论(0)
提交回复
热议问题