472,122 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

Error: ORA-01427:single-row subquery returns more than 1 row?

Expand|Select|Wrap|Line Numbers
  1.  select *
  2.   from sttb_record_log
  3.  where table_name IN ('STTMS_CUSTOMER', 'STTM_CUSTOMER')
  4.    AND KEY_ID LIKE(SELECT '%' || CUSTOMER_NO || '%'
  5.                       FROM STTM_CUSTOMER
  6.                     )
Error-ora-01427:single-row subquery returns more than one row
Aug 2 '12 #1
1 3327
12,516 Expert Mod 8TB
Please use code tags when posting code.

When using the like operator with a subquery, the subquery must only return one row.
Aug 2 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by GJW | last post: by
8 posts views Thread by Thomas R. Hummel | last post: by
1 post views Thread by bassamsuha | last post: by
1 post views Thread by sachin shah | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.