How can we check the data already exists in database
hi friends
i am trying create one procedure to add customers in database with customer id as input parameter..but if in the database customer detail already exists than i would like to update that detail and if its not in the database than i would like to add that detail in the databse...how could i do this ...
any help wpould be appreciate
thanks
rommy
Hi,
If your requirement is to insert in one table and if the record exists insert into other table the merge statement doesn't work
Example (please check the column name and parameter names). I don't put commit or rollback because I don't know if you control the transaction inside this procedure or outside it.
CREATE OR REPLACE PROCEDURE add_cust(I_CUST_ID IN VARCHAR2,
I_CUST_F_NAME IN VARCHAR2,
I_CUST_L_NAME IN VARCHAR2,
I_CUST_ADD IN VARCHAR2,
I_CUST_CITY IN VARCHAR2,
I_CUST_STATE IN VARCHAR2,
I_CUST_ZIP IN VARCHAR2,
I_CUST_DOB IN DATE,
I_CUST_ IN VARCHAR2,
I_CUST_ACCT_TYPE IN VARCHAR2,
I_START_BAL IN NUMBER) IS
BEGIN
INSERT INTO CUSTOMERS C
(CUST_ID,
CUST_F_NAME,
CUST_L_NAME,
CUST_ADD,
CUST_CITY,
CUST_STATE,
CUST_ZIP,
CUST_DOB,
CUST_)
VALUES
(I_CUST_ID,
I_CUST_F_NAME,
I_CUST_L_NAME,
I_CUST_ADD,
I_CUST_CITY,
I_CUST_STATE,
I_CUST_ZIP,
I_CUST_DOB,
I_CUST_);
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
INSERT INTO CUSTOMER_ACCT
(CUST_ID,
CUST_ACCT_NO,
cust_acct_type)
VALUES
(I_CUST_ID,
CUST_ACCT_SEQ.NEXTVAL, -- CUST_ACCT_SEQ is a sequence, isn't?
I_CUST_ACCT_TYPE);
END add_cust;Regards,
Similar Messages
-
How can i check the data Of the phone and repar it
Thank you jeremy to replaying me , i forget to informe you,i already initialyze the phone, i am now how can i chek the data data of phone and repar the missing data(Read,write)
The data are Numbers.
i am new in Labview someone can help me withe sample.I do this type of thing for a living, so I am restricted (by contract) in what I can say. Therefore this answer will be sufficiently general to help you get started but without doing the work for free.
Here goes;
You will have to find out at least three SETS of details.
1) Find out what physical interface to the phone is. By this I mean what type of connector do you need to plug into the phone, What type of signals are transfered back and forth, and how they are used.
2) Determine the protocol used. This is the actual commands and response that can be sent to the phone and are returned by it. Get all of the details.
3) Determine the what functionality is support by the phone that is usefull to you. This would be things liked, "How do
I get a list of all the numbers", how do I modify a number", etc.
I hope this helps,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
How can I check the date of purchase for my MacBook Pro?
I need to fill out a claim in order to get OS X Mountain Lion and I need the date of purchase. I have tried putting in the serial code under check your service and support coverage but it just gave me a vague statement thatit was purchased mid 2012. Could someone please tell me how I can check the date of purchase?
Well, correction, just checked mine...
Tells you exipry date of warranty, simply take 1 year off of this or 3 if you have AppleCare.
There is your purchase date. -
How can i check the data Of the phone throug cpmputer
I have a data in my computer, and i want to check the data of hand Phone, and if there are data missing to repar that data .(the data are numbers ).
I am new in labview somone can help meThis is not an easy thing to do. I just happened to be surfing the web for information about my nokia. Low and behold I came across a site devoted to hacking the phone. It had plans for cables and the basics of the communication protocol. The point I am trying to make is that you will need to surf the web for information about setting up communication to your phone. Each phone is different and each manufacturer can use whatever protocol they want. Once you have than info, we can then give you advice about implementing it in LabVIEW.
-
How can I check the data transfer rate of my FW800 port
I have an iMac 2.4 20 inch (MB323LL/A) with a Lacie external rugged hard drive (320 GB). I have attached it using my FW800 port with the cable supplied with the drive.
It seems slow to me so I was wondering if there is any way to see what the current data transfer is for a backup in progress. Of course it should be 800Mbps but is it really moving at that speed ? How can I tell what speed it is transferring at ? Can I use the same method for USB ports too ?When you move a large file, you are more likely to see a sustained transfer rate than a small file. Small files have to be individually read/write back and forth, thus slows the actual transfer rate down. If you are moving any file up to 4 GB and probably over 1 MB you'll see more realistic transfer rates. Furthermore your hard drive access time, and RPM figures into the equation too, as well as how much RAM you have. 800Mbps works out to 100 Megabytes per second under ideal conditions.
-
How can i check the file which is upload from the server
when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with the required condition .
for example ,i want to upload the file which have the data whose type is pack, and it have three integer and two decimal ,how can i check in my code.
thanks,Hi Sichen,
First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
Thanks,
Vinod. -
How can i view the data from Access DB in oracle
pls tell me that how can i view the data of MS ACCESS DATABASE in ORACLE.i was use ODBC of ACCESS DATABASE AND THEN CREATE DATABASE LINK IN ORACLE BUT NOT YET SUCCEEDED.PLS TELL ME THE PROCEDURE.
regard'shi,
u nedd to use Oracle Hetrogeneous Services,,
full details of the procedure u may fing on metalink
Regards -
I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do? How can I get the data off this disc? I can see it has been already burned, so files are on there?
Try cleaning the lens and see if that will restore functionality to the DVD drive. Use a DVD lens cleaning disk, if you have a can of compressed air, shoot some into the slot or wrap a fine microfiber cloth (eyeglasses cleaning cloth) around a business card and insert it gently inside the slot.
If no success, make an appointment at an Apple store genius bar and get a free diagnosis from them.
Ciao. -
How can I check the expiration date of a Certificate Keychain from terminal?
Hello, I am writing a bash script to alert me when my corporate certificates are about to expire. How can I check the expiration date of a certificate in keychain? I'm running Mac OS 10.6.8 on a newer MacBook pro with full admin rights.
Specifically I will be checking three certs: a Root Authority, Issuing Authority, and a user cert (Identity).
I was exploring the Security and Openssl command line tools. But I can't seem to get the info I need.
Any recommendations would be appreciated.
Thank you!Anyone?
-
How can i check the planned data vs actual data
How can i check the planned data vs actual data with the infocubes?
Hi Srinivas,
You create one cube for plan data and create another cube for actual data.
Create a multiprovider and give comparision report. this is betterway.
Or you can also load actual and plan data in one cube but you need to maintain one character like version to seperate atual and plan data.This is not a good work.
Regards,
Vijay. -
How can I stop syncing my outlook calendar with iCloud and not lose the existing calendar data in outlook? The calendar data which downloads to Outlook was also wiped off the Gmail calendar after the iCloud sync, how can I restore the data to Gmail?
same issue, looks like nobody answered you from last JULY....
-
IP Job in BW finished, but how can I check the IDoc receive status in BW ?
Hi,experts
After I execute a Infopackage with loading more than 200000 records data, the infopackage monitor show me yellow light, 186020 from 200000 records. this infomation still show me till now, seaval hours,it looks pause here.
And I check the request in the R/3, the Job has finished. as you know it means the R/3 push the IDoc already finished.
and how can I do now ? or how can I check the IDoc receive status in BW side?Hi,
I too had the same problem, i executed the following to solve the proble, may be this will help you:
1) Go to T-code SM58 and select TRFC and press F6,
2) For manual push of I-Docs, GO to T-COde BD87 select perticular idoc and see the status if it is not executed properly then do the manual push by pressing Execute option,
Thanks, -
How can we view the data asociated with Request ID
Hi All,
I have data loaded in an ODS there are multiple files loaded in this ODS. Now i want to view data for a perticuler request OR i want to know how can we know the data associated with a perticular request.
Please help me out.
Thanks & Regards
Amit KumarCopy the request number (not request ID) from the ODS manage screen, Goto RSRQ give the request number and execute. it shows the monitor screen- now goto PSA from the top and check the data. But this possible only if you are loading data to PSA also along with ODS.
Otherwise, Goto Display Data of ODS from the right click on it -- in the selection screen give the Request ID that you want to check the data. Then it displays only that request data.
Hope this helps.
Veerendra.
Edited by: denduluri veerendra kumar on Dec 1, 2009 12:40 PM
Edited by: denduluri veerendra kumar on Dec 1, 2009 12:43 PM -
How can i check if a procedure exists in a certain database version
So today i became really frustrated after noticing that the Oracle SQL version on some computer I needed to work on was 10.1. The problem with that was that I needed a procedure called "xmlserialize". I browsed the documentation for it, but I didn't see anything like "since 11.0" or something similar.
So.. how can I see what is the first Oracle SQL version that supported some procedure?
For example, when I check a class definition for Java, I consult the javadoc :
http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html
and there there's a field called "Since". For BigInteger ( it's just an example ), it says "Since: JDK1.1", so I know that if I'm using a JDK version earlier that 1.1, I won't have that class.
Is there some similar information for Oracle procedures/ functions/ features/ etc?>
Let me be more explicit. I've searched for xmlserialize function.
The only place on the website that holds information regarding this function is this page:
>
To paraphrase sybrand - that's utter nonsense. I have never found only one reference to anything on the web.
Your question subject is
>
how can i check if a procedure exists in a certain database version
>
And since you said you were using 10.1 I searched for
>
oracle 10.1 xmlserialize
>
And the very first link on the search results is
>
What's New In Oracle XML DB?
http://docs.oracle.com/cd/B19306_01/appdev.102/b14259/whatsnew.htm
>
That link is for the XML Db Dev Guide for 10g Release 2
Would you like to guess what you find if you search for xmlserialize?
Right on the very first page is this
>
Oracle Database 10g Release 2 (10.2) New Features in Oracle XML DB
SQL/XML Standard Compliance (SQL:2005 Standard Part 14)
Support for the developing SQL/XML standard has been extended. The following SQL functions have been added: XMLPI, XMLComment, XMLRoot, XMLSerialize, XMLCDATA, and XMLParse. Escaping of identifiers has also been updated, in accordance with a change to the SQL/XML standard. See "Generating XML Using SQL Functions".
>
Did you notice the second sentence? I removed the clutter to make it easier to see.
>
The following SQL functions have been added: . . .XMLSerialize. . .
>
Fnding information can't get any easier than that. -
How can we export the data from OAF Page to Excel instead of .csv or .txt
Hello,
How can we export the data from OAF Page to Excel instead of .csv or .txt
When i click on the export button it is exporting to txt file, But i need to export the data into Excel by default
Please help me
Thanks in advance
Thanks,
Raju
We have changed the below profile option to get the data in excel by default
Profile Name Export MIME type
Profile Code FND_EXPORT_MIME_TYPE+
Existing Value: text/tab-separated-values+
Change as: Excel
Thank you,
Raju
Edited by: 1006649 on May 21, 2013 10:55 AMWe have changed the below profile option to get the data in excel by default
Profile Name Export MIME type
Profile Code FND_EXPORT_MIME_TYPE+
Existing Value: text/tab-separated-values+
Change as: Excel
Thank you,
Raju
Maybe you are looking for
-
Hi all,,I am new learner to ABAP. I want to know from where we need to start ABAP.Becaz as of now I am not following any order.Can anyone tell me the order to follow.. thanks in advance
-
i know products like cushycms are great for editing web page content from a control panel of sorts - and then having the revised pages uploaded automatically - but is there a way that a page can be edited directly from it's own browser window? what i
-
Mis-giuded by nokia care centre
a yeara nd half ago i brought nokia c6-01 . now its touch screen started cre4ating problems. i went to nokia care they said as c6-01 is no longer available in market so its imposible to repair my set. still i gave them and they took it without making
-
Has anyone had the problem of suddenly seeing your iPod with a Itunes symbol and a connect USB port wire. Then when you connect to computer it says it must restore.Then you attempt to restore and is says iPod cannot be found and a error 3194?
-
Do the ipods at the apple store already have ios 7 built in them