i think he wants to query based on a varaible in the where clause and probably needs top know how that is done is sql*plus (and not pl/sql)
i gues there is a accept/define commands whihc you could use .. hth Deepak PS;i am lame myself in sql*plus... --- Scott Canaan <[EMAIL PROTECTED]> wrote: > It depends on what you want to do with this. You > need to have an into > clause, so declare a variable and put one in. If > you want to see the > output, then use the dbms_ouput package to display > it. > > Harvinder Singh wrote: > > > > Hi, > > > > We need to write a query like this: > > > > declare > > dd number; > > begin > > select * from t_acc where id_acc=dd; > > end; > > / > > > > we r getting obvious error that INTO clause is > missing........ > > but we only need to run the query and get the > result back..... > > How can we accomplish this......... > > > > Thanks > > -Harvinder > > -- > > Please see the official ORACLE-L FAQ: > http://www.orafaq.com > > -- > > Author: Harvinder Singh > > INET: [EMAIL PROTECTED] > > > > Fat City Network Services -- (858) 538-5051 > FAX: (858) 538-5051 > > San Diego, California -- Public Internet > access / Mailing Lists > > > -------------------------------------------------------------------- > > To REMOVE yourself from this mailing list, send an > E-Mail message > > to: [EMAIL PROTECTED] (note EXACT spelling of > 'ListGuru') and in > > the message BODY, include a line containing: UNSUB > ORACLE-L > > (or the name of mailing list you want to be > removed from). You may > > also send the HELP command for other information > (like subscribing). > > -- > Scott Canaan ([EMAIL PROTECTED]) > (716) 475-7886 > "Life is like a sewer, what you get out of it > depends on what you put > into it" - Tom Lehrer > -- > Please see the official ORACLE-L FAQ: > http://www.orafaq.com > -- > Author: Scott Canaan > INET: [EMAIL PROTECTED] > > Fat City Network Services -- (858) 538-5051 FAX: > (858) 538-5051 > San Diego, California -- Public Internet > access / Mailing Lists > -------------------------------------------------------------------- > To REMOVE yourself from this mailing list, send an > E-Mail message > to: [EMAIL PROTECTED] (note EXACT spelling of > 'ListGuru') and in > the message BODY, include a line containing: UNSUB > ORACLE-L > (or the name of mailing list you want to be removed > from). You may > also send the HELP command for other information > (like subscribing). __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Deepak Thapliyal INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
