Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: sqlplus help
That's true. On the other hand it won't check for a valid number, so you
would be allowed to enter "XYZ". ACCEPT ... NUMBER will give you an error
for that entry.
> -----Original Message-----
> From: Karen Morton [mailto:oracledba_at_morton-consulting.com]
>
> I'm not sure why it's doing that but I just tried removing the NUMBER
> datatype (and let it default to CHAR) and it seemed to work fine.
>
> ACCEPT MS PROMPT 'Enter the MS >'
>
> The new value made the comparison just fine and worked
> without problem on my
> test dataset.
>
> -----Original Message-----
>
> ACCEPT MS NUMBER PROMPT 'Enter the MS >'
> Enter the MS >2163836567
>
> select col1,col2...from
> where ms=&ms
>
> old 2: WHERE MS = &MM
> new 2: WHERE MS = 2.4e5
>
> when we enter the number as 2163836567 it gets changed to
> decimal number in
> the new value and the query fails.
> this is happening in the sqlplus client 8.1.5 but works fine
> on sqlplus
> 8.1.7 client
>
> no environment variables have been set.how to get this solved
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jacques Kilchoer INET: Jacques.Kilchoer_at_quest.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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).Received on Fri Apr 18 2003 - 13:59:18 CDT
![]() |
![]() |