Selecting all fields other than a few .

A table has fields a1,a2 among many others. How do I select all fields from the table minus these two?
I am looking for something like select *-(a1,a2) from t1 ;                                                                                                                                                                                                                                                                                                                                   

SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET PAGESIZE 0
SET TIMING OFF
SET VERIFY OFF
SPOOL query.sql
SELECT 'SELECT ' | | column_name
FROM user_tab_columns
WHERE table_name = 'T1'
AND column_name NOT IN ('A1','A2')
AND column_id =
(SELECT MIN (column_id)
FROM user_tab_columns
WHERE table_name = 'T1'
AND column_name NOT IN ('A1','A2'));
SELECT ' , ' | | column_name
FROM user_tab_columns
WHERE table_name = 'T1'
AND column_name NOT IN ('A1','A2')
AND column_id >
(SELECT MIN (column_id)
FROM user_tab_columns
WHERE table_name = 'T1'
AND column_name NOT IN ('A1','A2'));
SELECT 'FROM t1;'
FROM DUAL;
SPOOL OFF
START query
null

Similar Messages

  • How do I search contacts by a field other than name (e.g. category)?

    I recently switched from Blackberry to iPhone 4, and I use my iPhone 4 primarily for business. I have a PC and use Outlook as my contacts application.
    I regularly populate my Outlook contact records with various notes, and I regularly categorize my contacts. With Blackberry I could (and regularly did) search my contacts by fields other than by contact name (e.g. words which I had entered into fields such as Notes, City, State, Company, or Category, and this was very useful. For example, if I created a category called "Accountants" and categorized 3 contacts in that category, I could search my contacts for "Accountants" on my Blackberry and it would show a list of the 3 contacts I have who are Accountants. Or if I wanted a list of all contacts who reside in Chicago so that I can put together a slate of meetings during a visit to Chicago, I could search my contacts for "Chicago" and the search would result in a list of all my contacts with "Chicago" in their record (either in location, category, or notes fields).
    With iPhone 4, so far I've only figured out how to search the name fields of my contact records, but hopefully it is possible to search other fields or the entire contact record. How do I do that?
    Thanks.

    http://www.apple.com/iphone/features/search.html

  • Select all fields of a table while designing the layout of a query

    Can some one tell me how to select all fields of a table at a single stroke while designing the layout of a query....this would greatly reduce the time spent to select each and every field of a table into the layout....
    Thanks in advance

    Hi,
    Declare your internal table (Say it is itab).
    Then :-
    Select * from <tablename>.
    Eg,.Select * from mara.
    Then display it using:-
    Loop at itab.
    write:/ wa_itab.   "Workarea.
    endloop.
    Thanks and regards,
    Prerna

  • Column alias to select all fields in only one table in a join

    Hi,
    Please can you tell me if it is possible to use something like "SELECT a*" to select all fields in table a when using a join to join 2 tables e.g a and b? Instead of using "select acomlumn1 acomlumn2 acomlumn3" etc.
    Thanks and Regards.

    HI,
    It is not possible... You have to specify all the fields you want to select with the tilde '~' symbol...
    or,
    The other solution can be to fetch all the fields from the first table and use 'For all entries' of this table to fetch all fields from the other table...
    Edited by: sneha singhania on Jun 23, 2009 3:01 PM

  • I'm trying to make a AUTO slide show. I can select all the other actions like mouse clicks etc. but

    I'm trying to make a AUTO slide show. I can select all the other actions like mouse clicks etc. but ON load will not work.
    PLEASE HELP>
    I do not know how to reload/reinstall "ADOBE" golive default actions. I'm using golive cs mac version and "ON LOAD" action. I can't select it when creating a golive action.....It converts it or something to a rollover..
    How can I reistall basic adobe actions???
    Is it a bug???
    Is it a known issue???
    Do I need something??
    Am I missing something???
    Thanks a bunch..
    Kev

    In article <[email protected]>,
    [email protected] wrote:
    > I do not know how to insert the auto slideshowaction as a head action item.
    > The steps.
    > Can you explain how to do it?
    I just remembered I have a couple of screen snaps online to explain how
    it's done:
    1. place your base image and name it in the inspector
    2. from the smart objects palette grab the head action item, the one
    with a question mark in its upper, green half - the 2nd one from the
    left. Drop that into the pages head section.
    3. in the inspector set the action to run OnLoad and select the base
    image that you named in the first step and set the other parameters.
    This was done in the days of GL6, but not much had changed in GL CS.
    Anyway you might also refer to GL's online help. It describes how to set
    up all the actions that ship with GL.
    Cheers Martin

  • I want to hide all layers other than one layer when I play swf at first.

    Hello. I am using Adobe Flash CS6 and AC2.
    Right now I am trying to hide all layers other than one layer. There are 3 layers on my fla file like this.
    Layer A
    Layer B
    Layer C
    I want to keep hiding  Layers B and C unless  I click a button that makes layer B and C visible.
    Layer A has a movie clip symbol, and it contains animation movie where a man  is running.
    And Layer B and C has a movie clip where people  are chasing the person who is running on Layer A.
    I mean, if I load swf file at first, there is only one person who is running, and when I click a button two people appears on a stage and they start to chase the person who is running on layer A.
    What kind of script should I use to make this setting? Please give me your advice.
    Thank you in advance.

    Here is a simplified version of the code, including the two lines needed to make them invisible at the start....
    b_mc._visible = false;
    c_mc._visible = false;
    b_btn.onRelease = function():Void{
              b_mc._visible = !b_mc._visible;
    c_btn.onRelease = function():Void{
             c_mc._visible = !c_mc._visible;
    What that version of the coding does is simply tell the object to acquire the opposite ( ! ) value of the current _visible property.
    Notice also that I have removed the "_root " references inm the code.  You should not make a habit of using it unnecessarily.  If the code is in the main timeline already (the _root), there is no need to target it, and doing so can lead to problems if you ever need to load this file into another.  If that code is not in the _root timeline then it is okay to use _root, though using "_parent " references can be safer for the same reason.
    The way you had the code written is not wrong, but it was excessive in that you do not have to test the condition twice like you did, if it is not true then it has to be false.... 
    if(c_mc._visible){ 
          c_mc._visible = false;
    } else {
          c_mc._visible = true;

  • Is there a way to delete all duplicates, other than one by one?  some free program or does itunes have one to just identify and delete all duplicates in the library?

    How do I delete duplicates in my library as a group, rather than one by one?

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • Is there a way to view the iCal 'notes' field other than opening each event individually?

    I use the 'notes' field in iCal but it is not visible in any view other than opening each event individually.  Is there any way to make this field visible in the Day or Week view?

    Thanks, this is definitely better than clicking events one by one.  I just don't understand why Apple doesn't display it in the events in the day or week view the same way they show the Location field.  Interestingly, on the iPad "Day" view, the Notes field is diplayed in the panels on the left side of the screen (although not on the right side).
    Anyway, thanks for your prompt help.

  • F4 help : how to select all fields of a row

    Hi All,
               I am implementing f4 help in my bsp page. in teh help page i have 3 fields for each row. i get the value of key row in the input field once i select a particular row, bt I also want to access other 2 fields of the row that is selected, How can i do this?
    in the in put field i wnat only the key field tyo be displayed, but in the BSP application i want to access the otehr two fields that are in teh selected row, how can i do this?
    Thanks,
    Vasuki

    Hi all,
    Since this thread is a duplicate, I request every one to post you answer in the orignal thread.
    Please find the orignial thread in the following link.
    [http://forums.sdn.sap.com/post!reply.jspa?messageID=8350499|http://forums.sdn.sap.com/post!reply.jspa?messageID=8350499]
    Hi Vasuki,
    Please close this thread, since this one is a duplicate.
    Thanks,
    Maheswaran

  • Stacks in LR5 will not expand, and I can't seem to select any photo other than the top of the stack.

    Since upgrading to LR5, I've been really frustrated by stacks. When I export to jpg, I add it to the library, and add it to a stack with the raw. In LR4, it was easy to select either of these files, since they were side-by-side in the library, but with a visible indication that they were linked. Now, choosing expand stack does exactly... nothing. As far as I can tell, I can either select the very top photo of the stack by clicking on it, or all files in the stack by clicking on the little 1 of X box on the stack, but I have no way of selecting individual files in a stack.

    Your email provider has blocked the standard mail port 25 for sending emails and is requiring a different port. This is to avoid mail relays that use mail clients to send spam. You need to find the port that is used by your provider for sending outgoing mail. Then change the settings in your email account on your phone to match the port. You will also have to provide some security credentials for the account.
    You can also try deleting the email account from your iphone, and the adding the email account back as this will many times set the correct port for sending emails.
    You could also do a Google search on the the settings for your device with your email provider. That will provide you with the proper settings.

  • Query using WSDL 2.0 cannot fetch the fields other than type string

    I'm trying to query the fields with different data types using WSDL 2.0 in C#. But the response I get is having only fields with String data type. Please let me know if I need to set anything in the XML request to fetch all the fields.
    Request:
    <?xml version="1.0" encoding="utf-8" ?>
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <soap:Body>
    - <CustomObject3QueryPage_Input xmlns="urn:crmondemand/ws/ecbs/customobject3/10/2004">
    - <ListOfCustomObject3 pagesize="100" startrownum="0" recordcountneeded="true" xlmns="urn:/crmondemand/xml/CustomObject3/Query">
    - <CustomObject3 searchspec="[Id]='AGEA-11235'">
    <iRet_Pct_Auto />
    </CustomObject3>
    </ListOfCustomObject3>
    </CustomObject3QueryPage_Input>
    </soap:Body>
    </soap:Envelope>
    Response:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <ns:CustomObject3QueryPage_Output xmlns:ns="urn:crmondemand/ws/ecbs/customobject3/10/2004">
    - <ListOfCustomObject3 xmlns="urn:/crmondemand/xml/CustomObject3/Data" recordcount="1" lastpage="true">
    <CustomObject3 />
    </ListOfCustomObject3>
    </ns:CustomObject3QueryPage_Output>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The request contains the int field iRet_Pct_Auto but the response do not have this field.
    Your help is really appreciated.

    Hello,
    A service request has been raised with our engineering team to investigate further.
    Thanks,
    Sean

  • How do I get a drop down menu to auto default to option selected a value other than the default written in the javascript?

    I use web based software where I have to select from a drop down menu a particular option. However, I only ever use 1 option. Sometimes as much as 100 times a day. Is there anyway to get Firefox to auto select the same option every time? I don't have access to the source code so I cant change <option selected="selected" value="">.

    A possibility would be a Greasemonkey script to do this automatically or a JavaScript bookmarklet to do it manually.
    You would need to remove the selected="selected" from the currently selected option and set that attribute for the wanted option.
    You can test the bookmarklet here:
    *https://developer.mozilla.org/en/HTML/Element/select
    <pre><nowiki>javascript:(function(){var d=document,s=d.getElementsByTagName('SELECT')[0],o=s.getElementsByTagName('OPTION'),S='selected',v='value1',i;for(i=0;O=o[i];i++){if(O.value==v){O.setAttribute(S,S);O.selected=true}else{O.removeAttribute(S);O.selected=false;}}})();</nowiki></pre>
    If there are more 'selects' then you need to adjust the element number [0] and you also need to adjust the value of the wanted option.

  • Selecting paper size other than 8X10

    Hi,
    I am unable to select paper size from the printer driver of my EPSON printer for the iMAC using PS5.  Is there a print driver I am missing?
    I'm able to select paper size from iPhoto on the MAC, but it also prints according to the paper size.  Even though I've selected the image size as 11X14 the image is printed full paper size.
    David

    What OS are you using? 10.6 (and maybe 10.5 too) had a very unintuitive disclosure triangle in the Print Driver window that would should more printing details.
    10.7 and higher should have a button in the lower left to Show Details. You should then see Paper Size and be able to choose.
    If, I'm understanding your problem correctly.
    Posting a screen grab might help.

  • I cannot access Firefox at all anymore other than a blank screen and a "Firefox is not responding" message.

    I updated the versions of both Firefox and Adobe and now I cannot access Firefox at all. There is a blank screen with Mozilla Firefox top left. A couple of seconds later "(not responding)" appears. An attempt to close the window results in a box with the message "Firefox is not responding"

    You may need to delete the Firefox program folder before (re)installing the latest Firefox.<br />
    In case you still have problems after installing then check your security software.
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *http://kb.mozillazine.org/Browser_will_not_start_up

  • How to skip all files other than .txt file in Mail Sender Attachemnt ?

    Hi Friends ,
                      I am reading  an Mail attachement and sending to R3  using PaloadSwapBean and MessageTransformBean  .
                         I used to get attachement as .txt file , name like Ex10185.txt  in one mail . In another mail Ex10186.txt like that.
                        If only thoses file comes then no problem .
    <b>                   IF some times  along with .txt file some .html files are coming by that time my Mail Adapter incorretly reading the .html file.</b>
                <b>      Please tell me how to skip those kind of attachements and read only .txt file</b>
                          Expecting your answers  asap.
    Best Regards.,
    V.Rangarajan

    Hi Michal,
                   Thanks for your reply , Sorry! I am aware of how to write adapter module. Can you please tell me how to write adapter module ?
                      Is there any links available or Blogs ?
                     I am expecting your reply asap .
    Best Regards.,
    V.Rangarajan

Maybe you are looking for

  • CD imported to wrong folder organization Album/Artist instead of Artist/Alb

    I imported (ripped) a CD and the folder convention iTunes created in my music library was like this: AlbumName/ArtistName instead of ArtistName/AlbumName How could this happen. I have ripped hundreds of CD's and this is the first time it has happened

  • Pdf slideshow in LR1.3.1 appalling resolution

    There is something seriously wrong with the downsizing of images for a slideshow exported to pdf. I exported using 1024x768 as the chosen resolution. On viewing the pictures looked horrid, so I repeated the export but with jpg quality set to 100%. Sa

  • IdeaPad integrated webcam has gone nuts.

    Hello. I've been using my 11" ideapad netbook for about a year now, but today its camera decided to retire, I guess. Here's how the display looks like: That's my window and some trees outside I have absolutely no idea what's going on and since I know

  • Sub Contracting g/l acct assignment

    Hi Friends,                    I have got a message during subcontracting goods reciept that, "field selection for movt type 543/ acct 41301100 differs for asset retirement(016). This account is for change in stock of semi finished material. Can we u

  • Problems acessing a webservice

    Hello, I created a web service from a java Bean using the web service cration wizard from netweaver. The deployment is ok, I find my webservice on the web services list in the web services navigator, but when I click on it in order to test it, I got