Re: [OT] Oracle Question
- From: "Krusty" <dontwantany@xxxxxxxxxxxxxxx>
- Date: 10 Nov 2005 16:18:35 GMT
osvif@xxxxxxxxxxx wrote:
> Any Oracle specialists lurking?
>
> I have a table (TABLE1) which has 3 columns of data all type VARCHAR2.
> A second table (TABLE2) containing metadata about the stuff in TABLE1.
> Finally a stored procedure that takes TABLE1 data after being
> converted to the right type using information from TABLE2.
>
> Any smart ideas on getting the type conversion and call to the stored
> procedure using either PL/SQL or Pro*C? The prototype I have been
> asked to look at has a horrible load of IF type = 'FLOAT' THEN .....
> which just looks wrong.
Which version of Oracle? CASE or DECODE would do it, but it sounds like
a terrible design. If you've got control over the structure, it'd be
worth saying what the business requirement is. There may be a better
way of doing it.
--
Krusty.
http://www.muddystuff.co.uk
http://www.muddystuff.us
Off-road classifieds
'02 MV Senna '96 Tiger '79 Fantic 250
.
- References:
- [OT] Oracle Question
- From: osvif
- [OT] Oracle Question
- Prev by Date: [OT] Oracle Question
- Next by Date: Re: OT : Good XP Domain Admin book?
- Previous by thread: [OT] Oracle Question
- Next by thread: OT: Tomorrow...
- Index(es):
Relevant Pages
|