If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Second, the select....... into ........ statements will return more than one rows that satisfy the condition probably, but I'm not sure this is the exact reason for the error occurred, I don't know what are the "---------" means in the two "select into" statements.