Actually i want to retrive all the customer information present using p_cusid,if there is no customer i want to create it so pleas look into this and help me

CREATE OR REPLACE procedure first_project_1(p_cusid in number,
c_id in number,
name in varchar2,
db in date,
ac_type in varchar2,
adres in varchar2,
bid in number,
city in number,
loc in number)
is
cus1 banks_customers_accounts%rowtype;
no_customer exception;
cursor c is select cus_id,names,dob,acc_type,address,b_id,city_id,location_id into cus1 from banks_customers_accounts where cus_id=p_cusid;
begin
open c;
loop
fetch c into cus1;
dbms_output.put_line(cus1.cus_id||cus1.names||cus1.dob||cus1.acc_type||cus1.address||cus1.b_id||cus1.city_id||cus1.location_id);
exit when c%notfound;
end loop;
exception
when no_Data_found then
dbms_output.put_line('customer does not exists');
raise no_customer;
end;
exception
when no_customer then
insert into banks_customers_accounts values('c_id','name','db','ac_type','adres','bid','city','loc');
end;

Moderator Action and Comment:
This duplicate is locked.
Multi-posting is just as rude as asking for immediate responses from people in a user-to-user online forum.

Similar Messages

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • Where is the bookmarks stored? I Install the Firefox once again since I upgrade my computer.Is there any folder just like "favourite"to store the html file? I really want to find out the bookmarks because actually i can't remember all the website that ar

    Where is the bookmarks stored?
    I Install the Firefox once again since I upgrade my computer.
    And I try to move the bookmarks from the old computer to the new one.
    But I can't find anyone of them.
    Is there any folder just like "favourite" to store the html file?
    I really want to find out the bookmarks because actually i can't remember all the website that are important to me~ URGENT!!!~THANKS~

    You can move file named places.sqlite from your old profile to the new one. It contains bookmarks and browsing history.
    Here's a knowledge base article about it: [[Recovering important data from an old profile]]
    If you don't care about saving your current bookmarks, you can skip creating new profile (Firefox does it by itself at first run anyway).
    I'd might suggest you to install addon https://addons.mozilla.org/en-US/firefox/addon/2410/|Xmarks Bookmark and Password Sync]. It is a free web service which synchronizes bookmarks and (optionally) passwords with central server, and then to other computers, if you installed it on more. You may treat is as a backup too.

  • What is the transaction to view all the customer,i want customer list

    Hi All,
          Is there any transaction to view all the customer pertaining to a single comany code.
    Thx
    venu

    Dear Venu,
    Try using T-Code - S-ALR_87012179.
    This would give you list of Customer for a customers.
    Or else,
    Go to SE16 & enter tabke KNA1.
    Here you can gget list of all Customer codes, names & other details.
    Hope this helps,
    Reward if useful...
    Thanks,
    Jignesh mehta

  • HT201269 I downloaded the iOS7, lost all the custom ring tones that I had on my phone, how do i get them back.  when I sync my phone, itunes says that they have been selected, but they don't show up on my phone

    I downloaded the iOS7, lost all the custom ring tones that I had on my phone.  the iTunes sync page says that they have all been selected but they don't show up in my phone? Help?

    I had the same problem and was able to fix it. Go to your iTunes and click on the Tones folder on the left under library. Some of my ring tones had an exclamation mark next to it and those were the ones that did not sync. You have to click on those and find it in your computer. Once the exclamation mark is gone, go to Tones section of your device in iTunes, make sure you select the tones you want synced, and click apply. I hope that helps you!

  • SQL query to find all the custom folders in Discoverer (query posted)

    I know its not a question I am posting..this is just to inform community users that this query makes life easier in case someone wants to find out all the custom folders in a particular EUL (folder name starting with XX)
    select b.ba_name,f.obj_name folder_name,f.obj_id,f.obj_ext_owner Owner
    from
    APPS.EUL5_objs f
    , APPS.EUL5_ba_obj_links l
    , APPS.EUL5_bas b
    where 1=1
    and f.obj_id= l.bol_obj_id
    and b.ba_id= l.bol_ba_id
    and b.ba_name like 'XX%'
    order by b.ba_name,f.obj_name;
    Hopefully it would be useful to others!

    Connect as sysdba and try..
    To list all objects >100M in size.
    SQL> select owner, segment_type, segment_name, sum(bytes)/(1024*1021) from dba_segments
    group by owner, segment_type, segment_name
    having sum(bytes)/(1024*1021) > 100
    For tablespaces ..
    select tablespace_name, sum(bytes) tablespace_size
    from dba_data_files
    group by tablespace_name
    union all
    select tablespace_name, sum(bytes) tablespace_size
    from dba_temp_files
    group by tablespace_name
    order by tablespace_name

  • I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account and will sync, but delete everything from my phone. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    Iphone will sync with one and only one cpomptuer at a time.  Syncing to another will erase the current content and replace with content from the new computer.  This is the design of the  iphone.
    It will erase the content when you sync.
    Why not update from the comptuer with which you normally sync?

  • Using ms project 2007 and vba macro to list all the custom fields used in the project?

    Hi,Using ms project 2007 vba macro, I would like to be able to list all the custom fields used in the project and their corresponding field names. e.g. let us say I create a calculated duration field and name it "expected duration" and the name
    of the field I select is Duration1.
    I am trying to write a macro that will list all the used custom fields such as the result would look like:
    Duration1 ---> "expected duration"
    Text1       ---> "anything"
    Flag1        ---> "....."
    Number1  ---> "..............."
    Can anyone provide me with the solution?
    Regards,
    Chuck

    John,
    I found this module, which provides the the list of custom fields used in the project but does not provide the name given to the field. Here below is the module and hope you could help me achieve this by modifying the macro to list the renamed field.
    ' MSP Checks all Custom Task Fields
    Sub checkfields2()
    'This macro will check and report out which custom task fields are used
    'It requires Project 2002 and above as it relies on the GetField
    'and FieldNameToFieldConstant methods which were not introduced until
    '2002.
    'It does not include resource fields, however it is a simple matter to
    'do it by replacing the pjTask constant with pjResource.
    'Copyright Jack Dahlgren, Oct. 2004
    Dim mycheck As Boolean
    Dim myType, usedfields As String
    Dim t As Task
    Dim ts As Tasks
    Dim i, it As Integer
    Set ts = ActiveProject.Tasks
    usedfields = "Custom Fields used in this file" & vbCrLf
    myType = "Text"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 30
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Number"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 20
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Duration"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If Left(ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)), 2) <> "0 " Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Cost"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Start"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Finish"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    MsgBox usedfields
    End Sub
    This is what the module gives me. But I would like to have beside Text 1 the name that is shown as below. e.g Text1 is "Test".
    Would you mind helping me achieve this?
    Thanks in advance.
    Chuck

  • How to view code of all the custom and complex folder  folder

    How to view code of all the custom and complex folder folder in EUL?

    You do not need to run all the reports.
    Also i am not sure about why do you need to see the code of every thing, i assume you will not get much from it.
    If there is a certain folder you are interested in then this is the way.
    Any way there is no way to get the code of the complex folders since they are logical join of other folders.
    to get the code of the custom folder s you can use:
    select * from eul_us.eul5_objs t
    WHERE t.obj_type='CUO'
    AND t.obj_object_sql1 IS NOT NULL;
    you should look (and concatenate) at the obj_object_sql1,obj_object_sql2.....
    Tamir

  • Retrive all the items under one folder

    Hi,
    I am new to ContentArea API's in 9ias.
    I am looking for Sepecific API's to retrive all the Items
    under one folder.
    thanks
    sha

    I'd love to know that API also. I have resorted to accessing the tables containing that information.
    wwv_corners contains an entry for each folder. wwv_things contains an entry for each folder item. You can join the two tables as
    wwv_corners.id = wwv_things.cornerid
    You could do something like:
    select folders.name, items.id
    from portal30.wwv_corners folders
    ,portal30.wwv_things items
    where folders.id = items.cornerid
    and folders.id = 99999;
    (where 99999 is the folder id.)
    Mike Kleiman

  • How to get all the custom tables created in database

    Hi,
    Is there any sql query present to fetch the name of all the custom tables(Not the tabless inbuilt tables which is given by oracle) present in any module like iExp,iRec or anything.
    Thanks

    It is difficult to differentiate custom tables from the seeded ones if there is no naming conventions followed during their creation. The custom schema or owner name can be used to differentiate them.
    Thanks,
    Neeraj

  • I just recently purchased a mini iPad for my child. It was set up in the Apple store with my Apple id. I now want to create an Apple id for my child and switch it over, how can I go about that. I already downloaded some of the games from my account.

    I just recently purchased a mini iPad for my child. It was set up in the Apple store with my Apple id. I now want to create an Apple id for my child and switch it over, how can I go about that. I already downloaded some of the games from my account.

    With a new account, you'll need to rebuy the games.
    Each user should have their own icloud account, otherwise they end up getting the same emails, contacts, calendars, notes, reminders, etc. - usually not what you want.  But if all have been sharing the same itunes ID, keep it that way, you can have different IDs for itunes and icloud.
    If you already have another icloud account, and want to set it up on a device, then go to Settings>icloud, scroll to bottom of screen and tap Delete Account.  This only disconnects the device from that account, no data is lost on icloud.  Then enter the account ID that you want to use.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/

  • How to print/list all the groups/users present in Weblogic using Java code

    Hi,
    Weblogic version : 11.1.1.5
    How to print/list all the groups/users present in Weblogic using Java code
    I want to make a remote connection to Weblogic server and print all the users/groups present in it.
    I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
    http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
    Thanks in advance,
    Edited by: 984107 on 05-Feb-2013 05:26
    Edited by: 984107 on 05-Feb-2013 22:59

    see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
    Hope this helps.

  • Not able to get all the results if i use "get-spdeletedsite" command

    Hi everyone,
    I am not able to get all the results when I use the below powershell command.
    get-spdeletedsite -limit all
    It is giving me only one site, but infact we have more than 100 deleted sites.
    If I use the normal command like below it is giving the below output
    get-spdeletedsite
    Can any one tell me, how can I get all the deleted sites ?
    Best Regards
    Anil Alladi

    Hi  Anil,
    For the Limit parameter of Get-SPDeletedSite cmdlet, when we specify its value to ALL, it  will return all site collections for the given scope.
    For your scenario, the script “Get-SPDeletedSite –Limit ALL” will return all deleted site collections in your SharePoint environment.
    If you want to get all deleted site, you can export the result to csv as below:
    Get-SPDeletedSite | export-csv out.csv -notypeinformation
    Reference:
    http://technet.microsoft.com/en-us/library/hh286316(v=office.15).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • In Layoout how to see all the lead columns presented in that.

    Hi Friends,
    Could you please suggest me how to see all the lead columns presented in the Layout.
    Appreciate your help through points.
    Regards,
    PJ

    Hi Ravi,
    When I opend the layout in change mode we are able to see the Layout, when click on continue we can see Header area,lead coulmns,data columns. In Lead columns I am able to see only 20 rows only. But I want to see all rows in that lead columns. When click on continue we are able to see the layout in ALV grid format. In that we can see lot of rows. Now my question is How to see all the rows present in Lead columns. Still if you have any details please give me ur id I will send some screen shots or give ur no. I will talk to you.
    Thanks & Regards,
    PJ

Maybe you are looking for

  • Automatic removal of colour fringing of Panasonic lenses on Olympus body (micro 43) possible?

    Hi, Last week I sold my Panasonic GH2 and bought an Olympus OM-D E-M5.  My 14-45 Panasonic lens shows some nasty purple colour fringing with the OM-D (not your ordinary green-purple chromatic aberration, but purple fringing on both sides of highly ex

  • Finder hangs on 10.7.4

    I installed OS 10.7.4 update. Ater that the finder, safari or any program except for Google Chrome. Before that everything was working perfect. Any clue? Thank you in advance. Nacho. 

  • Spool filename that contains spaces

    Hi Folks, Does anyone know a technique for creating spool files that contain spaces in the path name? I have a script that I want to pass in a directory path as a parameter. The script then uses this directory as the path for dynamically created scri

  • App icons on the home screens

    Hi. I'd very much appreciate some help on something. I've just downloaded the latest BB10 system update on my Q10. All my app icons (which I'd carefully organised in frequency-of-use groups) have now been scattered over various home screens. I want t

  • PI integration to IMS Mainframe

    1. Does any one have a high volume interface(s) they are using in production to a IMS (Mainframe)? 2. What adapter are you using? 3. Are you doing IMS transactions updates? 3. Is it working well for you?