Select a number of fields between one field and another

Hello,
Is there any way to make a SELECT to show a number of fields between one field and another,
without writting all the fields one by one ?
For example, I have one table with these fields:
TABLE EMPLOYEE:
ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
write in the SELECT all the fields one by one.
Is this possible?
Thank you very much.
Sorry for my english it's not very good.

Swam wrote:
Hello,
Is there any way to make a SELECT to show a number of fields between one field and another,
without writting all the fields one by one ?
For example, I have one table with these fields:
TABLE EMPLOYEE:
ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
write in the SELECT all the fields one by one.
Is this possible?
Thank you very much.
Sorry for my english it's not very good.If you use the DBMS_SQL package to execute your query you can reference the columns by position rather than name.
One examples of using DBMS_SQL package:
SQL> ed
Wrote file afiedt.buf
  1  DECLARE
  2    cur       PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
  3    cols      DBMS_SQL.DESC_TAB;
  4    ncols     PLS_INTEGER;
  5    v_min_col NUMBER := 2;
  6    v_max_col NUMBER := 4;
  7    v_val     VARCHAR2(4000);
  8    v_bindval VARCHAR2(4000);
  9    v_ret     NUMBER;
10    d         NUMBER;
11  BEGIN
12    -- Parse the query.
13    DBMS_SQL.PARSE(cur, 'SELECT * FROM emp', DBMS_SQL.NATIVE);
14    -- Retrieve column information
15    DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
16    -- Display each of the column names and bind variables too
17    FOR colind IN v_min_col..v_max_col
18    LOOP
19      DBMS_OUTPUT.PUT_LINE ('Column:'||colind||' : '||cols(colind).col_name);
20      DBMS_SQL.DEFINE_COLUMN(cur,colind,v_bindval,4000);
21    END LOOP;
22    -- Display data for those columns
23    d := DBMS_SQL.EXECUTE(cur);
24    LOOP
25      v_ret := DBMS_SQL.FETCH_ROWS(cur);
26      v_val := NULL;
27      EXIT WHEN v_ret = 0;
28      FOR colind in v_min_col..v_max_col
29      LOOP
30        DBMS_SQL.COLUMN_VALUE(cur,colind,v_bindval);
31        v_val := LTRIM(v_val||','||v_bindval,',');
32      END LOOP;
33      DBMS_OUTPUT.PUT_LINE(v_val);
34    END LOOP;
35    DBMS_SQL.CLOSE_CURSOR (cur);
36* END;
SQL> /
Column:2 : ENAME
Column:3 : JOB
Column:4 : MGR
SMITH,CLERK,7902
ALLEN,SALESMAN,7698
WARD,SALESMAN,7698
JONES,MANAGER,7839
MARTIN,SALESMAN,7698
BLAKE,MANAGER,7839
CLARK,MANAGER,7839
SCOTT,ANALYST,7566
KING,PRESIDENT,
TURNER,SALESMAN,7698
ADAMS,CLERK,7788
JAMES,CLERK,7698
FORD,ANALYST,7566
MILLER,CLERK,7782
PL/SQL procedure successfully completed.
SQL>Of course, if you were going to do this properly you would bind the correct datatypes of variables based on the types of the columns (the type information is also available through the describe information)

Similar Messages

  • Copy text from multiple fields to one field

    I would like to copy text from multiple fields into one field. Each of these smaller fields will only be allowed to have one character. The larger field will not be able to be edited.
    So far, I have thought of creating a naming heirarchy for these fields. I was going to then call upon the array of the parent and set the value of the parent to equal this array.
    var parent = this.getField("everything");
    var array = everything.getArray();
    var v;
    for(parent=0; parent<array.length; parent++)
    v = a + " " + v;               //Im guessing this line is incorrect
    parent.value = a;
    Any suggestions? or a better way of doing this.
    Thanks

    The code sample you provided is using AcroForm scripting and will not work in this form. There is another post similar to this one...have a look at this one it might help you out. It is doing the opposite of what you want but the concept of the loop and how each field is addressed inside ofthe loop is what you wil need.
    http://forums.adobe.com/message/2954517#2954517
    Paul

  • HOW to copy Form field from one RTF to another RTF

    Hi Expert
    I have developed 20 reports in BI Publisher which is using xml as data source. So to access the data i have done the xml coding for each form field.
    Now i want to copy the form field from one rtf to another, while doing the copy paste of the form field from one rtf to another it is not copying the xml coding. It is appearing in the new rtf as below
    <?ref:xdo0391?>
    Can you guys suggest me how to achieve the same. Is there any setting need to be changed so that while do the copy paste the form field it will copy the backend code also.
    Thanks in advance.
    Thanks
    Srikant

    make your template set as backward compatabile before you do anything on template. load the xml and then copy the form field. it should work. dont try to open the field without loading xml.

  • Comparing the fields of one file to another file

    Hi guys,
    Is it possible to compare the fields of one file to another file using ABAP?
    I have a file extracted from SAP and I want to compare my extracted file to another file using ABAP?
    How am I going to do it?
    Thanks a lot!
    Rgds,
    Mark

    Mark,
    How to read the file from appli. server to internal table:
    DATA : v_fpath TYPE salfile-longname VALUE
                                   '/data/sapdata/inc/inbox/ppm_maint_plan'.
    DATA : BEGIN OF i_records OCCURS 0,
            rec TYPE string ,
          END OF i_records.
    DATA : BEGIN OF it_input,
                 tplnr LIKE iflot-tplnr,
                 stjobno(22),
                date1(10),
                frequency(10),
                sortfield(20),
                ilart LIKE t353i-ilart,
            END OF it_input.
    OPEN DATASET v_fpath  FOR INPUT IN TEXT MODE.
        DO.
          READ DATASET v_fpath_te INTO i_records-rec .
          IF sy-subrc EQ 0.
              SPLIT i_records-rec AT c_coma INTO it_input-tplnr
                                                 it_input-stjobno
                                                 it_input-date1
                                                 it_input-frequency
                                                 it_input-sortfield
                                                 it_input-ilart.
              APPEND it_input.
              CLEAR it_input.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
        CLOSE DATASET v_fpath .
    Note :  it_input is the internal table .If you don't know the columns structure.Declare your internal table (it_input ) fileds as "char" with some length.
    Do same thing for another file.
    SORT : both internal tables.
    LOOP AT it_input.
      LOOP AT SECON_internaltable.
        compare the fields here..
      ENDLOOP.
    ENDLOOP.
    Pls. reward if useful....

  • Hi, I have a large number of products in one column and prices of the products in another. Most prices are different. I want to know if it is possible to increase all of the prices by 5% or 10% etc. Hope someone can help. From Stiffy

    Hi, This is my first time I hope someone can help.
    I am working with numbers and I have a large number of products in one column and the relevent prices in another. All the prices are different and I want to increase the price of everything by 5% or 10% etc. Is this possible?
    Thanks in advance
    Stiffy123

    Ad a new, temporary column (or one you can hide when not using). Let's say the current Prices are in column C and the new column is D.
    you can inflate the prices in column C by 5% by entering the formula in the first cell of column D as:
    =C2*105%
    likes this:
    to fill down, select D2, then copy, then select the D3 thru the end of the column, then paste.  Now select C2 thru the end of column C, now paste over the existing values using the menu item "Edit > Paste Values"
    you can now hide column D until you need to use it again.

  • Link Between One PDF to another PDF

    Hi,
    Could you please explain on how can we link between one PDF to another PDF.
    I have 2 PDF files which are Online Interactive Adobe forms.
    Regards,
    Maruti

    Hi Maruthi,
    we can.....
    see the below links......
    http://www.sap.info/public/INT/int/index/Category-28943c61b1e60d84b-int/-1/articleContainer-18393415bdc39551ae
    https://www.sdn.sap.com/irj/sdn/adobe
    thanks
    swamy

  • How to integration between one model to another model

    hi friends
    can any one explain me
    how to integration between one model to another model 
    ex:- i have sales model 1 and  i have anther model finance model how to changes  in figures in sales model as well same change are happen in finance model how it possibly please explain me friends   
    and how many ways i can do this ?
    Thank you
    suresh m

    Hi Suresh,
    If you do changes in Finance and want to send data in Sales , you can use LOOKUP /DESTIANTION_APP -script logic or ABAP logic.
    To have seamless flow, you need to take care of security.
    Explain your requirement in  more detail .
    May be helpful .
    Shrikant

  • When I use the type tool or the selection tools, my photos blink between the photo and a black screen.  Anyone else have this issue?

    When I use the type tool or the selection tools, my photos blink between the photo and a black screen.  Anyone else have this issue?

    Does turning off »Use Graphics Processor« in the Performance Preferences and restarting Photoshop have any bearing on the issue?

  • POSDM Diff Between : One Step and Two Step Processing Tasks

    Hi All,
    Can you pl give some points on difference between "One Step and Two Step Processing Tasks in POSDM ??
    Thanks!!

    Please consult the SAP Note 980272 on the service marketplace. It gives a detailed description of the difference.

  • Differences between One Arm and Route modes?

    Hi Guys,
    What are the differences between One Arm and Route modes? Can anyone please explain?
    Krishna

    Hi Krishna,
    Have a look at the two links below. They provide configuration examples for each of the two topologies along with explanation on the different commands used.
    http://docwiki.cisco.com/wiki/Basic_Load_Balancing_Using_Routed_Mode_on_the_Cisco_Application_Control_Engine_Configuration_Example
    http://docwiki.cisco.com/wiki/Basic_Load_Balancing_Using_One_Arm_Mode_with_Source_NAT_on_the_Cisco_Application_Control_Engine_Configuration_Example
    I hope this helps
    Daniel

  • Get number of hours between two dates and two hours using factory calendar

    Hello all,
    I have the following requirement: I need to calculate the number of hours between two dates and two hours (start date- finish date and start hour-finish hour) or timestamps using a factory calendar. I must program it on CRM environment.
    Does anybody know a function module that makes it?
    Thanks in advance.
    Carmen

    Please check function module DURATION_DETERMINE.
    - April King

  • I click on one song and another one starts playing.  Cover art for one artist shows up on another album.  All of my music isn't showing up.  Please help.  Why is this happening?  How can I fix it?

    I click on one song and another one starts playing.  Cover art for one artist shows up on another album.  All of my music isn't showing up.  Please help.  Why is this happening?  How can I fix it?

    Sorry for not getting back with you...
    That moves only the iTunes media, not the iTunes library (which is really kinda nebulous).
    iTunes library = iTunes folder and all the media, wherever it is located.
    The /Music/iTunes/ folder contains the iTunes library.itl file, which keeps track of everything in iTunes.
    I do however still have the original MAIN startup drive still in the computer, it's just not the startup.
    This is good you still have it.
    Try this...
    Hold Option and launch iTunes.
    Select Choose library... and select the /iTunes/ folder on the original drive. It should be in /Users/your_user_name/Music/.
    Don't mess with anything. We can get it cleared up.
    Does everything work okay?

  • I created one iTunes account on one pc and another iTunes account on my current pc. How do I merge the two accounts?

    I created one iTunes account on one pc and another iTunes account on my current pc. How do I merge the two accounts?

    Csound1 wrote:
    iMatch works by matching or uploading the music in your iTunes account, it doesn't matter where the music came from as long as it now in your account, but if you purchased it with a different account you will need to be logged in
    No.
    As long as you computer is authorized for that iTunes account, the songs will work with iTunes Match. The user does not need to be logged in on that computer.
    Husband's computer and husband's iTunes account signed in.
    Songs from wife's iTunes account on computer and computer authorized for wife's account. Songs from both will work with iTunes Match.

  • How do I use dual displays to have a full screen app on one monitor and another full screen app or the desktop on the other?

    How do I use dual displays to have a full screen app on one monitor and another full screen app or the desktop on the other?
    I want to have my itunes visualizer on my TV which is connected via HDMI adapter, and still have access to full screen itunes and my desktop on the main display.
    Any suggestions?  App downloads that can do this?  Please let me know.

    You can't do it.  This has been an issue since Lion.

  • I have the next problem: when i'm listening music and i change a song it's appears the background of my iPod between a song and another. This happens after install iOs5 =[

    I have the next problem: when i'm listening music and i change a song it's appears the background of my iPod between a song and another. This happens after install iOs5 =[
    Please help me

    I opened a new user on my computer yesterday with administrative privledges. I then opened up an itunes account from this new user. It seemed to go pretty well. I haven't downloaded any new songs yet or moved them to my account. I don't know how to move songs yet. I'm reading iPod and iTunes for Dummeies. Very appropriate for me. I will let you know when I manage to do this and am successful. Once again, thank you for your kindness and help. Kay 205

Maybe you are looking for

  • 865PE NEO2 FIS2R memory problem

    I have this 865PE NEO2 FIS2R with a 3ghz northwood (512K cache, 800 fsb). initially I bought a 1GB Geil PC3500 DDR dual channel kit. installed those into slot 1 and 3, installed windows...during install I would get blue screens. recently I bought a n

  • PC-to-Mac video calling issues

    Why is it that PC users can see me but I can't see them when using Skype? Is there something I need to download? I have an iMac OS X 10.6.2. Please somebody help me!!!

  • Can't install CF Builder 2

    I am trying to install the latest versin (CF Builder 2, update 2) on my iMac (2013 model, 8GB RAM, OS X 10.8)  The installer launches but the intial screen is blank with only the "next" button visible. It wil not progress from there. I've tried re-bo

  • Is it possible to remove any built in columns?

    I might have used some built-in columns in my list, is it possible to remove them?There is no DELETE button when I open the column. I am Admin of the site. Thanks.

  • Log and transfer with Panasonic HDC-HS100

    I recently purchased the Panasonic HDC-HS 100, that is a hybrid SD card/HDD. I am having problems importing my footage onto my computer. When opening the log and transfer window in FCP, it does not recognize the camera (error messages indicate there