|
如题:概念使用主键关系,设置多个字段为主键,在oracle数据库查询报错,具体报错sql语句如下:
- SELECT
- ROWNUM AS JUSTEP_RN__,
- JUSTEP_TABLE__.*
- FROM
- (
- SELECT
- EXAMINE_EMPLOYEE.DEPARTMENT AS DEPARTMENT,
- EXAMINE_EMPLOYEE.EDUCATION AS EDUCATION,
- EXAMINE_EMPLOYEE.EMPNO AS EMPNO,
- EXAMINE_EMPLOYEE.EMPNO,
- EXAMINE_EMPLOYEE.TDATE,
- EXAMINE_EMPLOYEE.EXAM_CLASS,
- EXAMINE_EMPLOYEE.EXAM_CLASS AS EXAM_CLASS,
- EXAMINE_EMPLOYEE.JOB_FLAG AS JOB_FLAG,
- EXAMINE_EMPLOYEE.NAME AS NAME,
- EXAMINE_EMPLOYEE.POST_CLASS AS POST_CLASS,
- EXAMINE_EMPLOYEE.POST_NAME AS POST_NAME,
- EXAMINE_EMPLOYEE.SECDEPARTMENT AS SECDEPARTMENT,
- EXAMINE_EMPLOYEE.SEI_DATE AS SEI_DATE,
- EXAMINE_EMPLOYEE.SEX AS SEX,
- EXAMINE_EMPLOYEE.TDATE AS TDATE,
- EXAMINE_EMPLOYEE.TECHNICILITY_GROUP AS TECHNICILITY_GROUP,
- EXAMINE_EMPLOYEE.TITLE_CLASS AS TITLE_CLASS,
- EXAMINE_EMPLOYEE.TITLE_NAME AS TITLE_NAME,
- EXAMINE_EMPLOYEE.WORK_DATE AS WORK_DATE,
- EXAMINE_EMPLOYEE.WORK_MANAGER AS WORK_MANAGER,
- EXAMINE_EMPLOYEE.WORK_SPECIALITY AS WORK_SPECIALITY
- FROM
- EXAMINE_EMPLOYEE EXAMINE_EMPLOYEE
- WHERE
- (EMPNO = ?)
- AND (TDATE = ?) ) JUSTEP_TABLE__
- WHERE
- ROWNUM<2
复制代码
|
|