sql - How do I get a single out from an Oracle-Procedure? -
I have found this process:
The process of creating or changing CONV1 (in PRT) VARCHAR2, Pierre Out Number, PMOTH Out Number, PADA Out Number) as LDT Date; BEGIN lDate: = to_date (pDate, 'DDMMYYYYH24: MI: SS'); Pair: = to_number (to_char (lDate, 'YYYY')); Pmonth: = to_number (to_char (lDate, 'MM')); PDA: = to_number (to_char (LDT, 'DD')); Closing CONV1; /
How do I call this process if I just want a boycott?
function that will use the conv1 process, but returns only one value.
Or even better for your special case
SELECT to_char (to_date (your_date, 'DD.MM.YYYY HH24: MI: SS'), 'DD') Dual to
Or the general case is:
create or rebuilding work CONV2 (VARCHAR2 in PRT) is the number PDA number; P. Number number; Pier Number; BEGINConf 1 (PDT, PEAR, PM, PDA); Return PDA; End;
Comments
Post a Comment