Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

select statement

Former Member
0 Likes
434

hey,

i m facing a very simple issue...just want to confirm if my understanding is right...

select single a b into x y from table where m = n.

ny problem with this statement ??

can't i select the needed fields and move them to local variable of my choice with such a single select statement ??.

it does not work..keeps on giving syntax error...saying y is not expected !! any help ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
407

correct statement is:

select single a b into (x, y) from table <table name> where m = n.

Regards,

Joy.

Edited by: Joyjit Ghosh on Jul 31, 2008 8:45 PM

2 REPLIES 2
Read only

Former Member
0 Likes
408

correct statement is:

select single a b into (x, y) from table <table name> where m = n.

Regards,

Joy.

Edited by: Joyjit Ghosh on Jul 31, 2008 8:45 PM

Read only

Former Member
0 Likes
407

select a b

from tab

into (a, b)

where condition.

it is accepted, use ( )