Select into file with PRO*C

Hi, i use ANSI C and ORACLE 10g. I wanna write a table into a file with PRO*C. The way I know is: exec sql; select col1, col2 into :var1, :var2 from tab; end exec; Than i open a file an write var after var into a file. i think u laugh now :-) but plesse help me and tell me an easy way to do this. can i do the select direktly in a file or can i select diffrent cols in only 1 variable? need help (plesas no spool with SQL*PLUS) thx oli

If you insist on using Pro*C then you can concatenate and format the fields in the SELECT statement.
For example:
select col1 || chr(9) || col2 into :varx from tab;
Then you will have only one variable to print into the file. Not that it makes any difference.

Similar Messages

  • Selecting Multiple Files With Shift Key

    Am I right in understanding that the only way to select multiple files with the Shift key in Finder is by using File view? Seems kinda silly.
    Thank you, Scott

    I'm at my Snow Leopard machine right now, and I'm not sure that nothing was changed in Mavericks, but I never noticed that it was.
    I have four view modes: Icon, List, Column and CoverFlow.
    I almost always use Column view, but I am guessing that you are calling Icon view File view. In Icon view, Shift clicking seems to work the way Command clicking does in Column view (and probably the other views as well): it allows you to add randomly selected files to the selection. In Column view, Shift clicking works like it does for most things (like text selection); it selects every thing between the previous click and the Shift click.

  • I cant select all files with the new update

    I cant select all files with the new itunes update

    Version 11.1.5.5 of iTunes was just released today. If you update to that, does that help with the recognition troubles?
    http://www.apple.com/itunes/download/

  • HT1386 I have sync an ipad with a new computer and the photos have been transfered into files with no extensions. I can view them on the ipad but canot view and delete from the computer.

    I have synced a new computer with the ipad and the photos have been transferred as a file with no exstention. I cannot view them on the computer but can on the ipad.

    Well I forget the exact keys, but believe pressing and holding down CTRL before clicking Restore will allow you to browse and find the backup file (may be wrong).
    In the end, as far as the iPhone thinks, it is a new computer so it will erase and resync stuff and as long as you loaded everything back into iTunes all should sync back. Main issue is other stuff like the data within the apps, notes, etc that are part of the backup which is why you would want to try to restore from the backup. If you don't mind losing data in apps (eg: do you care you have to relog into some apps and start over, don't care about game scores, etc) then you don't have to worry about the backup. If you have important data in some of those apps then you will need to restore from the backup.

  • Selecting multiple files with mouse now wonky

    Using Windows 8.1 on HP machine
    All updates up-to-date
    Hardware: Microsoft Intellimouse Explorer 3.0
    Explorer Folder Option selected: Single-click to open an item (point to select); Underline icon titles only when I point on them
    Display: Detail list (Ctrl + Shift + 6)
    No touch input
    Here's the problem: For as long as I have used windows, I can select multiple files by pressing ctrl-left mouse button. If I want to select multiple consecutive files, I move my cursor down to the last file in the list and press shift-left mouse button.
    If I want to select multiple files that are not listed consecutively, I move my cursor along the list of files and press ctrl-left mouse button to select each individual file.
    This does not work for me any longer and I do not know why.
    Often I will press ctrl-left mouse click and the file will not select. When I move my mouse away from the file I've selected, it will UN-select. If I continue to press the CTRL key while attempting to select another file and float my mouse cursor down the
    list of files to select ONE single file further in the list, ALL the files in between the first file I click and the final file will become selected.
    Moving the mouse cursor carefully and steadily to select individual files yields varied results; sometimes I can select individual files; sometimes, I can click multiple times to select an additional file and the file will not become selected. More often
    than not, I will select several files and earlier files will become unselected.
    Extremely frustrating.
    I have been a Windows user since version 3.1 and this has never happened to me. I have been a Windows 8.1 user for over a year now and this is a new wrinkle. I have done system restore multiple times and it has not solved the problem. I have uninstalled
    Intellipoint/Microsoft Keyboard & Mouse center and reinstalled and the problem has not solved. I have checked every setting for my mouse in the mouse center and cannot see a setting that imposes this feature.
    Changing folder options to Double-click to open an item (single click to select) solves the problem. I am able to navigate and organize my files the way I always have. Only happens when single-click feature is enabled. Please note: I have been using the
    single-click select feature since Windows XP.
    Your guidance and actual solution to this irritant is appreciated.

    Hi,
    During my test, I cannot repro this issue even I configure the same setting with you. Maybe a hardware issue or software issue.
    Does this issue happen to other mouse?
    Can you test in safe mode to check how it works?
    Alex Zhao
    TechNet Community Support

  • How to select multiple files with Trackpad

    I am new to Mac and to the Trackpad. I apologize if this has been posted.
    When I work on a Windows PC, if I want to select multiple consecutive files I can click on the first file, press and hold SHIFT and then select the last file and all files in between are selected.
    I tried that using the Trackpad and it doesn't seem to work the same way. Is there another key combination? I can select multiple files by either using SHIFT (on Picasa website for example) and then tap or by holding COMMAND and then tap each individual file. But how do I select multiple files similar to Windows, clicking first file pressing a key and clicking the last file.
    Thanks in advance for any input on this.

    If you choose 'view as list', you can use the shift-key. Select an item, press the shift-key while you press an item below and all the items between are selected.

  • Opening Logic Files with Pro Tools/Mbox 2 Micro to Use 'Beat Detective'

    Is this possible?
    Just wanna tighten up some acoustic drum tracks
    with Beat Detective.
    If so, will I be able to use the new Mbox 2 Micro?
    Thanks a bunch...

    this is the correct procedure, as stated make SURE they all start from '0' and that you have the correct tempo entered in protools, and not JUST in the transport bar, but in the main tempo track itself.
    also, im assuming you know the limitations of PT LE's beat detective (only one stereo or mono track at a time) unless you have the Music Prod or the Complete Production Toolkit. but there are workarounds to make it work, youll have to check the Digi user confrence boards for that. the to go back to logic you just consolidate the files starting at '0' and export them out.

  • How to select all files from the application server.

    Hi all,
    I have  a requirement to select all files with the same file format I.e i have created no of files with same name but different time stamps addition , now i want to select all the fiels and read the data into an internal table and sort them on the user requirement,  I am using FM -
    /SAPDMC/LSM_F4_SERVER_FILE to get single file name, i should also give the option on the  selection screen for the user to select the file range I.e form which to which the sorting should be done.
    could anybody suggest me the function module which selects all the file names .
    Regards,
    Sre.
    Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:49 PM

    Hi,
    PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
    include structure salfldir.
    data: end of it_filedir.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Get Current Directory Listing for OUT Dir
    call function 'RZL_READ_DIR_LOCAL'
    exporting
    name = p_fdir
    tables
    file_tbl = it_filedir.
    List of files are contained within table it_filedir
    loop at it_filedir.
    write: / it_filedir-NAME.
    endloop.
    Regards,
    Omkaram.

  • External procedure with Pro*C in it

    I have some C functions that I have compiled into a shared library on Unix.
    One of the functions contains a SQL statement to insert into a table, so I
    compile the file with Pro*C. It compiles fine. I have another C program
    that calls the function within my shared library. It runs fine and the shared
    library does insert the data into the table.
    I create an Oracle library that points to the shared library, then create a stored
    function in the database that executes the routine in the shared library. At
    this point, everything seems in place. We have been using external procedures
    for a while, and they seem to work OK. This is the first one we have, though that
    has Pro*C code in it.
    When I execute the stored function to execute my Pro*C routine, I get the errors
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: Unresolved external.
    This shared library is the first one that we are using that has Pro*C in it. The
    documentation doesn't say anything about being able to use Pro*C routines
    as external procedures; but it doesn't say you can't. Am I attempting the impossible?
    If not, what am I missing?
    null

    Is your library object pointing to one shared library and in turn function in this library is 'looking' to another shared library? if so, that is not allowed

  • How can I convert a PDF/A file into a PDF file with Acrobat Pro X?

    How can I convert a PDF/A file into a PDF file with Acrobat Pro X? I'd like to modifiy the file which I have only as a PDF/A.

    There's two answers if you want to modify the file:
    You can temporarily turn off PDF/A Mode in your preferences, so they don't open as read-only. The problem would be if you do something to the file that violated the PDF/A standard, so you should always run a Preflight check afterwards to make sure.
    If you want to remove the PDF/A header tag, use Preflight again - it's on the Print Production Panel in Acrobat X Pro (which may be hidden, use the options menu on the Tools Pane to show it). There's a profile called "Remove PDF/A information" - choose this and press Analyze and Fix. Nothing else about the file will be altered but when you save and reopen it all the editing tools will become active.

  • How to Import AVCHD 1080/60p Files into Final Cut Pro 7?

    How do I import AVCHD 1080 / 60p Files into Final Cut Pro 7? And if there is no direct way [I certainly haven't found one, but I'm no expert], what additional software would be used? I want to import the files from a Panasonic HDC-HS700 onto an Intel Mac laptop [Mac OSX 10.5.8]? Obviously I don't want to compress & compromise my footage.
    I’m sure a simple, straightforward series of steps would help many people with this issue.
    Thanks!

    Thanks for the response!
    I'm guessing you've found ClipWrap2 to be better than competing products [such as AVCHD Converter for Mac, Toast Titanium, or Voltaic].
    On to the next steps. Using Clipwrap2, would I leave the checkbox "Convert Audio to LPCM" selected or deselected [and what the heck is LPCM?]. In the pulldown menu would I choose "Rewrap (Don't alter video samples)" or do I save a step by choosing "Apple ProRes 422"?
    And finally, am I gaining anything by shooting 1080/60p on this Panasonic HD Camera other than a headache? [Some have suggested this is not a True 60p.]

  • I can't import any files or folders into Final Cut Pro 7.0.3 projects

    I can't import any files or folders into Final Cut Pro 7.0.3 projects. When I select import and then either files or folders, I am able to navigate to the drive where the media is being stored, but then when I scroll to locate the files or folders the drive disappears. This problem began as an intermittent problem, but now I cannot import any files or folders. This problem started when I upgraded my operating system to Yosemite version 10.10.2 on my mid-2010 Mac Pro running with 16 GB of memory and an ATI Radeon HD 5770 1024 MB graphics card. Can anyone help me figure out and solve this serious problem? Thanks!

    Then just drag the files/folders from your hard drive into FCP.  Don't use the IMPORT option...just drag and drop.
    The problem started when you installed an OS that doesn't support FCP 7.  So if you want things to work smoothly, it's best to go back to an OS that did support FCP 7. Yosemite was written without taking FCP 7 functionality in mind, so it isn't fully functional. It might not do one thing for someone...but works for you in that respect. But then you can't do something else. The ways it doesn't work is always random.  Or it might work great for some people, because they don't use functions that might no longer work....so they don't notice it.

  • HT3964 I just opened up my MacBook Pro after a few days of not using it and it was frozen. I turned it off and back on and all I see is a white screen, there was a file with a question mark flashing for a bit but I can't do anything, please help me!!

    I just opened up my MacBook Pro after a few days of not using it and it was frozen. I turned it off and back on and all I see is a white screen, there was a file with a question mark flashing for a bit but I can't do anything, please help me!!

    Jerricayoung,
    you have a 13-inch Mid 2012 MacBook Pro. It’s modern enough that it supports booting into Recovery mode. To do so, hold down a Command key and the R key as you start up. It should eventually show a Mac OS X Utilities menu. Select Disk Utility from that menu; when the Disk Utility window appears, select the bootable volume from the left-hand side of the window. (It’s typically called “Macintosh HD”.) When the volume is selected, some buttons will appear on the right-hand side. If it’s not greyed out, press the Verify Disk button; if it is greyed out, or if it reports on errors that it found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu; that will restart your MacBook Pro in its normal mode. With luck, that will be enough to get you to your normal login screen, rather than the white screen.

  • Hi, can anyone help with the problem I am having with pro book 4440s? I can't boot into windows 7.

    Hi, can anyone help with the problem I am having with pro book 4440s?  I can't boot into windows 7, nor can I enter the bios cause i fogot the password. the error I am getting says "windows failed to start. a recenr hardware or software change might be the cause.   it then gives me options to boot from a disc but I can't do that cause I am unable to get into the bios to change it to boot from a disc.
    The error message goes on :
    File: \Boot\BCD
    Status: oxcoooooof
    info: An error occurred while attempting to read the boot configuration.
    the only two options on the screen are enter=continue and ECS=exit
    I just can't get pass this screen.
    Please help.
    Thanks

    Hi,
    If you don't already have one, use another PC to create a Windows 7 Rescue CD.  Download the relevant ISO from the links below.
    Windows 7 32bit
    Windows 7 64bit
    You should use an application such as ImgBurn to burn the ISO to a CD - a guide on using ImgBurn to write an ISO to a disc is Here.  Once created, or if you already have this, tap away at the esc key as you start the notebook to enter the Start-up Menu.  Insert the Rescue CD.  Select Boot options ( usually f9 ), use the arrow keys to select the CD/DVD drive and hit enter.  You may also get a prompt to 'Press any key to continue' - do this if asked.
    When loaded, select Repair Your Computer and choose the Command Prompt.  When this loads, enter the following commands and hit enter after each one - include spaces as shown.
    Bootrec.exe
    bcdedit /export C:\BCD_Backup
    c:
    cd boot
    attrib bcd -s -h -r
    ren c:\boot\bcd bcd.old
    bootrec /RebuildBcd
    bootrec /fixmbr
    bootrec /fixboot
    Remove the Rescue CD and try rebooting the notebook.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Upload multiple files WITH correct pairs of form fields into Database

    In my form page, I would like to allow 3 files upload and 3 corresponding text fields, so that the filename and text description can be saved in database table in correct pair. Like this:
    INSERT INTO table1 (filename,desc) VALUES('photo1.jpg','happy day');
    INSERT INTO table1 (filename,desc) VALUES('photo2.jpg','fire camp');
    INSERT INTO table1 (filename,desc) VALUES('photo3.jpg','christmas night');
    However, using the commons fileupload, http://commons.apache.org/fileupload/, I don't know how to reconstruct my codes so that I can acheieve this result.
    if(item.isFormField()){
    }else{
    }I seems to be restricted from this structure.
    The jsp form page
    <input type="text" name="description1" value="" />
    <input type="file" name="sourcefile" value="" />
    <input type="text" name="description2" value="" />
    <input type="file" name="sourcefile" value="" />The Servlet file
    package Upload;
    import sql.*;
    import user.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Date;
    import java.util.List;
    import java.util.Iterator;
    import java.io.File;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.text.SimpleDateFormat;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.*;
    public class UploadFile extends HttpServlet {
    private String fs;
    private String category = null;
    private String realpath = null;
    public String imagepath = null;
    public PrintWriter out;
    private Map<String, String> formfield = new HashMap<String, String>();
      //Initialize global variables
      public void init(ServletConfig config, ServletContext context) throws ServletException {
        super.init(config);
      //Process the HTTP Post request
      public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        response.setCharacterEncoding("utf-8");
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        Thumbnail thumb = new Thumbnail();
        fs = System.getProperty("file.separator");
        this.SetImagePath();
         boolean isMultipart = ServletFileUpload.isMultipartContent(request);
         if(!isMultipart){
          out.print("not multiple part.");
         }else{
             FileItemFactory factory = new DiskFileItemFactory();
             ServletFileUpload upload = new ServletFileUpload(factory);
             List items = null;
             try{
                items = upload.parseRequest(request);
             } catch (FileUploadException e) {
                e.printStackTrace();
             Iterator itr = items.iterator();
             while (itr.hasNext()) {
               FileItem item = (FileItem) itr.next();
               if(item.isFormField()){
                  String formvalue = new String(item.getString().getBytes("ISO-8859-1"), "utf-8");
                  formfield.put(item.getFieldName(),formvalue);
                  out.println("Normal Form Field, ParaName:" + item.getFieldName() + ", ParaValue: " + formvalue + "<br/>");
               }else{
                 String itemName = item.getName();
                 String filename = GetTodayDate() + "-" + itemName;
                 try{
                   new File(this.imagepath + formfield.get("category")).mkdirs();
                   new File(this.imagepath + formfield.get("category")+fs+"thumbnails").mkdirs();
                   //Save the file to the destination path
                   File savedFile = new File(this.imagepath + formfield.get("category") + fs + filename);
                   item.write(savedFile);
                   thumb.Process(this.imagepath + formfield.get("category") +fs+ filename,this.imagepath + formfield.get("category") +fs+ "thumbnails" +fs+ filename, 25, 100);
                   DBConnection db = new DBConnection();
                   String sql = "SELECT id from category where name = '"+formfield.get("category")+"'";
                   db.SelectQuery(sql);
                    while(db.rs.next()){
                      int cat_id = db.rs.getInt("id");
                      sql = "INSERT INTO file (cat_id,filename,description) VALUES ("+cat_id+",'"+filename+"','"+formfield.get("description")+"')";
                      out.println(sql);
                      db.RunQuery(sql);
                 } catch (Exception e){
                    e.printStackTrace();
            HttpSession session = request.getSession();
            UserData k = (UserData)session.getAttribute("userdata");
            k.setMessage("File Upload successfully");
            response.sendRedirect("./Upload.jsp");
      //Get today date, it is a test, actually the current date can be retrieved from SQL
      public String GetTodayDate(){
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
        String today = format.format(new Date());
        return today;
      //Set the current RealPath which the file calls for this file
      public void SetRealPath(){
        this.realpath = getServletConfig().getServletContext().getRealPath("/");
      public void SetImagePath(){
        this.SetRealPath();
        this.imagepath = this.realpath + "images" +fs;
    }Can anyone give me some code suggestion? Thx.

    When one hits the submit button - I then get a 404 page error.What is the apaches(?) error log saying? Mostly you get very useful information when looking into the error log!
    In any case you may look at how you are Uploading Multiple Files with mod_plsql.

Maybe you are looking for

  • How can I make a window show up in every desktop?

    How can I make a window show up in every desktop so when a user switches views it's still on their screen, using Xcode, Applescript-ObjC?

  • Mail a PDF file as an attachment from my documents.

    I want to attach a PDF file to an email: I just finished composing my email and want to attach a PDF file I go to my documents select the the PDF file and click choose, the file is transferred to my letter alright but it has opened up and takes up th

  • Extracting long text of a message

    Hi, I have a message in a message class with a long text.I want to extract this longtext in my program. Is there any method to access/extract lontext of a message of a mesasge class? i.e if i can give the message class and message id as input?

  • Help request for digital ou

    This is possible to connect a digital out of a sound blaster audigy 2 to ampli of my home theater it use a optical cable ? if it possible how i make it please ? Thanx alot

  • Fading between multiple customer comments - scalability issue

    I am completely new to Flash and have been learning about alpha tweening to fade one .jpg image (of a customer's happy comment) to another.  This works fine if I only have a small number of comments, but modifying each and every stage of the transiti