Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. select da.act_year||' - '|| da.act_number act_id,da.pipe_number,DA.DIAMETER,da.wall,
  2. da.steel,da.pipe_length pipe_len,da.pipe_weigth pipe_wei,
  3. da.pipe_year,sr.id||' - '||sr.select_description prich_perev, act_date,smena, da.dpr_confirm, da.dpr_note,
  4. (select FIO from intershop.auth_users where user_name = REGEXP_REPLACE(master_id, '^.*\', null) and rownum = 1) FIO_Master,
  5. (select FIO from intershop.auth_users where user_name = REGEXP_REPLACE(inspector_id, '^.*\', null) and rownum = 1) FIO_Inspector,
  6. (select FIO from intershop.auth_users where user_name = REGEXP_REPLACE(dpr_id, '^.*\', null) and rownum = 1) FIO_Dpr
  7. from DEFECT_ACTS da
  8. left join Sel_Rjs2 sr on da.id_prich_perev = sr.ID
  9. where DA.EDIT_STATE = 0 and
  10. (da.act_number >= :act_begin or :act_begin1 is null)and
  11. (da.act_number <= :act_end or :act_end1 is null)and
  12. (da.Diameter = :diam or :diam1 is null)and
  13. (da.wall = :wall or :wall1 is null)and
  14. (da.id_prich_perev = :prich_perev or :prich_perev1 is null)and
  15. (da.act_year = :act_year_ or :act_year_1 is null)
  16. and
  17. da.act_date between :DATA_START and :DATA_END and
  18.  
  19. (da.pipe_number = :p_n or :p_n1 is null)and
  20. (da.pipe_year = :p_e or :p_e1 is null)and
  21. sr.dpr_sign_in_acts = :signature and
  22. if :signature_status = 1 || :signature_status = 2
  23. then da.dpr_confirm = :signature_status
  24. elsif :signature_status = 3
  25. then da.dpr_note = :signature_status
  26. order by act_number desc
  27.  
  28. ORA-00907: отсутствует правая скобка
  29. 00907. 00000 - "missing right parenthesis"
  30. *Cause:
  31. *Action:
  32. Error at Line: 22 Column: 24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement