|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Substr Function
I am using Oracle 8 and trying to use the substr function but I keep on getting the following error:
ORA-00936: missing expression The code that makes the error is below: Code:
select * from F_WEB_FORM_DATA, F_INVENTORY, F_RATE_PERIOD
where FORM_DATA_FIELD like ('INV') and
FORM_DATA_FKEY_SESSION_ID = 277790485
and (select SUBSTR(INV103, 4,3) = TO_CHAR(INI_SEQ)
and INI_FKEY_RAP_SEQ = RAP_SEQ
I cant see what is wrong with the statement as this is taken from a SQL SERVER database and it works with that fine. any help will be greatfull. |
|
#2
|
|||
|
|||
|
Code:
select * from F_WEB_FORM_DATA, F_INVENTORY, F_RATE_PERIOD where FORM_DATA_FIELD = 'INV' and FORM_DATA_FKEY_SESSION_ID = 277790485 and SUBSTR(INV103, 4,3) = TO_CHAR(INI_SEQ) and INI_FKEY_RAP_SEQ = RAP_SEQ |
|
#3
|
|||
|
|||
|
Thanks for the quick reply.
That works a treat. ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Substr Function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|