How to use Pro*C

HI!
I have a problem with using Pro*c.
I have to store values in a database.
I am able to do that with fixes numbers, but not with values.
My code is:
EXEC SQL EXECUTE
BEGIN
INSERT INTO XML (art_id,titel,fachgebiet,arttext) values (1,'der Titel',' Imunologie ','Das ist der Text2');
END;
END-EXEC;
How can I store varying values in a database?
Please help me.
Thank you
null

In the basic C code you to declare variable that needs to be passed to oracle with in
EXEC SQL BEGIN DECLARE SECTION
VARCHAR empname[11];
VARCHAR jobtype[9];
VARCHAR hired[9];
int salary;
int dept;
int worked_longer;
int higher_sal;
int total_in_dept;
VARCHAR uid[20];
VARCHAR pwd[20];
EXEC SQL END DECLARE SECTION;
The datatype supported are basic C datatypes and varchar etc.
Then you can assign values to these variables in your C code and can reference these variable in a PL/SQL block prefixed by : , this are called host variables .
Then your code will look like
EXEC SQL EXECUTE
BEGIN
INSERT INTO XML (art_id,titel,fachgebiet,arttext) values (:art_id,:title,:fachgebiet ,:arttext );
END;
END-EXEC;
Hope i have answered your question .
- Bala
null

Similar Messages

  • How to use Pro*COBOL with RMCobol

    Hi,
    I try use Pro*Cobol with RMCobol compiler.
    But I have problem to use oraSQL9.LIB y with runcobol (runtime).
    Thank for any help.

    I try use Pro*Cobol with RMCobol compiler.
    But I have problem to use oraSQL9.LIB y with runcobol
    (runtime).You will be able to do it with the new version of RM.
    This is due very soon, and you will need the new compiler, the new runtime, and a small C wrapper that I supply to be able to do it.
    If you already have Version 7 of the runtime you can also use OCI call's as of now, this also with a C wrapper I supply (this for windows, UnixWare 7.xx, OpenUnix8, and Linux (redhat at the moment, should work with most of others).
    I can be contacted at [email protected]
    regards
    Frederico Fonseca

  • How to use webcam for Yahoo Messenger on MacBook Pro, How to use webcam for Yahoo Messenger on MacBook Pro

    How to use webcam for Yahoo Messenger on MacBook Pro, How to use webcam for Yahoo Messenger on MacBook Pro because it's not working =(

    The cheap & easy way is to just drag the app to the Trash.
    If you want to get all of the associated files use an app deleting app like the free AppCleaner;
    http://www.freemacsoft.net/appcleaner/
    Just drag an app and drop it on the AppCleaner icon in the Dock and it will find and present to you all the files it thinks are associated with the app. You can uncheck any that you want to keep and then let AppCleaner Trash the rest.

  • How to use ssd as boot drive and hdd as storage on a macbook pro 13

    Does anyone know how to use SSD as boot drive and have HDD in optical bay as storage on a Macbook pro 13. I mean in that both drives work as one . by formatting using mac software . I would like to run all programs and OS but would love to have my downloads and useless data on run on my 1tb 5400rpm hdd without me have to manual send it there..

    Does anyone know how to use SSD as boot drive and have HDD in optical bay as storage on a Macbook pro 13. I mean in that both drives work as one
    Each drive mounts as a separate volume. There is no convenient way to make them look like one contiguous volume.*
    Franky, with an hdd and a ssd I would recommend you put your home dir on the hdd and leave the ssd for the OS and your key applications.  It's relatively easy to do and I think better than moving only portions of your stuff.
    How to Move the Home Folder in OS X – and Why
    * There are ways to to make musltiple volumes appear as one large drive but I think it is beyond the scope of this discussion and not appropriate to this configuration.

  • Does anyone know if apple's one-to-one program would be a good way to learn how to use logic pro or am I better off going to school to learn audio engineering or something?

    Of course going to school would be a good option, but I want to know if one-to-one is also a good way to learn how to use logic pro. Has anyone been through the one-to-one program for logic pro and can say that they learned how to use logic pro well because of it?

    For sure, one to one training, if given by a tutor who is capable, will hand you the means to build up self-confidence  and will therefore let you operate the hard/software in an intelligent manner, instead of going for the trial and error method which has its pro's and con's too. Once you've passed this beginners phase you will make your own decisions intelligently and then you will also start to get experience and learn even from your mistakes. Something like that in theory and the rest is up to you!
    Have a nice day

  • How to use .MKV and .ISO with Premiere Pro? They are not supported.

    Hi all. My brother in-law sent us two .mkv videos and a DVD .iso he wants me to use in a video I am cutting for him. The only trouble is, I've no idea how to get them into a format PremPro can handle.
    I've searched and the only solutions I have found are infinitely complicated for me. Avisynth is certainly beyond me.
    Anyone know of a way to convert .mkv (info lists 942x720 H.264 4:2:0 YUV MPEG4 AVC) into something useable?
    Same question for an ISO file.
    Thanks much
    By the way, this is not for anything 'important' nor am I getting paid, so I have no budget tp purchase software. I am sure there must be a free solution.
    I tried this trial version software...
    http://www.moyea.com/import-flv/
    But it would NOT install. It just errored in a loop and was unable to find or understand I have CS5 PremPro.

    Can anyone explain how to use VLC to transcode? The settings are endless and NONE look correct. Everything is about coverting and shrinking and that is not what I want.
    I have looked into this so many times and cannot find how to do it. I know it must be simple, but clearly I am blind.
    What I need is to take whatever is inside that stupid MKV wrapper and extract it. Transcode it. I have been trying for A YEAR now and have never been able to find a solution.
    I'm on a PC and unfortunately, there are free solutions for a MAC. But that won't help me.
    EDIT: One option I see is tsMuxer! But which setting for Output? I can choose...
    TS muxing... or M2TS musing... or Blu-ray disk... or AVCHD disk... or DEMUX
    To explain more, I have a Blu-Ray I purchased and want to add the audio from my laserdisc, since the remixed audio on the disc sucks (hard). I'll also add English subtitles. To be clear, this work is for ME for my own personal use.
    Here is a screen grab from tsMuxer. Which to choose? I will place the audio and video in Premiere Pro. Sync the old Laserdisc audio up and then EXPORT to Adobe Encore to burn a new BD.

  • How to use short cut in MacBook Pro

    How to use short cut in MacBook Pro
    I cannot set short cut key on action, please advise method,
    Thanks!!

    Details please.
    And screenshots can be so useful to clarify a question (one can use the camera-icon to attach images).
    Anyway, you don’t get the option to select a Function Key in the Action Options or is the key not displayed in the Actions Panel after setting one?

  • How to use Adobe LiveCycle Forms Standard / Pro to leverage features in Adobe Reader

    Can someone please tell me how to use the Adobe LiveCycle Forms Standard or Pro module to leverage features in Adobe Reader? Do you also need to have the Reader Extensions Module?
    The forms data sheet says that it is possible to leverage features in Adobe Reader but does not go on to detail how.

    Depends on your deployment pattern.  You can just use Reader Extensions if you're publishing forms on a site, if you need to prefill or perform other processing on the template then LiveCycle Forms is needed.  If you want to render to HTML5 for tablet support then Forms Pro is needed.

  • How can I use Pro Tools with Fire Wire interface and Fire Wire external HD

    If Mac Book Pro has only one Fire Wire jack and I want to use Pro Tools with an M Audio 1814 Firewire interface and an external Fire Wire HD how do I get around the fact that the Mac Book Pro has only one fire wire jack?
    Pro Tools says that they DO NOT recommend using USB 2 Hard Drives as recording drives.
    If I plug my External HD into the back of the 1814 it is way too slow to use, plus, I don't know why, Pro Tools is telling me that my External HD is "not a valid audio volume". It is a MAC OS Extended (Journaled) external Firewire HD (G-TECH G-DRIVE)
    Stuck...
    Message was edited by: Mezcla

    You could consider getting a firewire hub or get an expresscard 34 adapter with a firewire port.
    I personally use a Belkin Expresscard adapter that gives me an extra firewire port as well as two extra USB 2.0 ports.
    Good luck.

  • How to use on my new iMac the Acrobat X Pro I downloaded 2 years ago on my MacBook Pro?

    How to use on my new iMac the Acrobat X Pro I downloaded 2 years ago on my MacBook Pro?

    You can use the same installer, if you kept it, and the same serial number, if you still have it, and the old serial number, if it was an upgrade.

  • How to use pianoteq sounds in logic pro?

    How to use pianoteq sounds in logic pro? I've got an iMac 3.6 Ghz., intel core i5, OS 10.8.5. I want to be able to use my Bluthner piano sound (which is an add-on in pianoteq) in Logic Pro X (10.0.4).
    Thanks,
    Peter.

    Hi
    Try this in a new empty project:
    In the New Tracks box select a software instrument track, and un-check the Open Library box
    You will see a track plus the channel in the Mixer
    Click on the Input  "Inst" button, and you will see a menu like this
    Correctly installed 3rd party 64bit AU plugins will be in the AU Instruments sub-menu.
    CCT

  • How to use Setup Assistant in Logic Pro 8?

    How to use Setup Assistant in Logic Pro 8? I can't find it! even in the User Manuel!
    Also, where can we setup the monitor number like we used to set '2 monitor ' in Logic Pro 7's setup assistant
    Thanks!

    I've been using Logic on two monitors for years. Screensets extend over all the monitors your computer sees, you can position windows on one, or the other, or size them to fit over both, so you can happily have for instance an arrange window on one monitor, and a mixer window on the other monitor, or stretch a giant arrange window over both...

  • I do have a gray application DVD that came with my MacBook Pro by how to use it

    I do have a gray application DVD that came with my MacBook Pro by how to use it.

    You don't, your signature says you have 10.7.5 and the disk is either 10.5 or 10.6, has outdated software on it.
    Keep it in case of emergency in a very safe place in case you need to reinstall on a new drive, then upgrade to 10.7.5 again.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • I am very new to mac products, I have a Mac Pro 13" I  need to learn how to use it ? looking video courses any will helpI

    I am very new to mac products, I have a Mac Pro 13" I  need to learn how to use it ? looking video courses any will help .....

    Go to www.apple.com for a start. See, also, Mac Basics.

  • How do use the hum remover in final cut pro 5? Help

    How do use the hum remover in final cut pro 5? Help!!

    Simply drop the effect onto the appropriate audio track. Set the frequency for the hum frequency (50Hz or 60Hz depending on your power supply). Include whichever harmonics you think might be present eg. 100, 150, 200Hz.
    Note that I have generally had more success by using Soundtrack Pro's noise removal tool.
    Trevor

Maybe you are looking for