Trying to set an email address

I am using Oracle 9i and SQL*Plus on Windows XP.
I am trying to set an email address in my object table using an object method.
I have the following types:
CREATE OR REPLACE TYPE student_type AS OBJECT
(FirstName varchar2(15),
LastName varchar2(15),
Address address_type,
Contact contact_type,
DateOfBirth date,
Nationality varchar2(15),
AttendanceMode varchar2(15),
StudentNo varchar2(15),
Userid varchar(15),
FeeStatus varchar2(25))
create type contact_type as object
(home_tel_no number(14),
mobile number(14),
email varchar2(25))
and have created a method to set an email address:
MEMBER FUNCTION setEmail (self IN OUT student_type, em varchar2) RETURN number,
PRAGMA RESTRICT_REFERENCES (setEmail, WNPS, RNPS)
along with all of the other necessary code which works OK.
I have implemented it with the following code but am not sure if it is correct:
MEMBER FUNCTION setEmail (SELF IN OUT student_type, em varchar2) RETURN NUMBER IS
BEGIN
SELF.CONTACT.EMAIL := em;
RETURN 1;
END;
but when I try to run it, i get the following error:
SQL> SELECT S.SETEMAIL('[email protected]') FROM STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy';
SELECT S.SETEMAIL('[email protected]') FROM STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy'
ERROR at line 1:
ORA-06572: Function SETEMAIL has out arguments
Any help with this would be great.
James

SELECT S.SETEMAIL('[email protected]') FROM
STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy'
ERROR at line 1:ORA-06572: Function SETEMAIL has out arguments
er...that'll be because your member function has an OUT parameter, self:
MEMBER FUNCTION setEmail (self IN OUT student_type, em varchar2) RETURN number,(1) You need to reference all parameters in the function, so you need two arguments in your call - but...
(2) we cannot use methods with OUT parameters in SELECT statements, because that's the law.
Do you need to pass SELF into your method? If so you'll have to use PL/SQL to do this instead.
Looking at your code again, I see you are actually using a SELECT statement to alter the data iin the database. This is not allowed at all. SELECT statements are, must be, read only.
Cheers, APC

Similar Messages

  • I am trying to change my email address for an Apple ID and it is saying that it is already in use. I then sign in with that Apple ID and it says that the account is not set up yet, I don't want to set up the account, but I do want to use the email address

    I am trying to change my email address for an Apple ID and it is saying that it is already in use. I then sign in with that Apple ID and it says that the account is not set up yet, I don't want to set up the account, but I do want to use the email address in my original Apple ID! HELP!

    Welcome to the Apple community.
    Once you have created a rescue address, you cannot delete it, nor can you change it to the same address as used by your ID. There are numerous providers you can get additional email addresses from, such as Hotmail, Yahoo, Google etc etc.

  • I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.

    I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.  Every time I go to the account settings of my existing account (which currently uses my university email, as I set it up years ago and had no idea it'd eventually cause problems), I enter a different email to use for that account but I continuously receive an error message saying "account changes cannot be saved."  It makes me think that it's because the email isn't verified (funny, it actually is verified since it has been the alternate email on the old account for years), but when I click the "send verification email" nothing happens (that is, no email is sent to that other email address).
    Anyway, my university is now requiring that faculty create new accounts using our university email addresses in order to register/use Creative Cloud.  Am I able to delete my old account, or can anyone help me actually change the email address associated with my old account without getting a "changes can't be saved" error?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    or
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • How to set default email address for input

    G'day all
    Summary: I'm sick, it's difficult to type, and a combination of autocorrect, default Shift key settings for input fields and my iPad completely ignoring my default email account is making it laborious to input my email address. Help!
    (Edit: I had a micro-brainwave and checked my "Me" card in Contacts, since I have Safari set to autofill from that card. My default email address is not listed first in the card. I've now put it on top, Gmail second and "me.com" last. I'll comment later on if I see this help with point 3 below.)
    Details:
    I love my shiny new iPad2. I really do. But autocorrect is driving me crrrrrazy when I try to input my email address.
    Typing in general is an issue for me, because I am disabled and have difficulties with coordination and movement. On my laptop (MacBook Pro mid 2009), I used TextExpander. It lets you set an abbreviation for any text, so you can just type that abbreviation instead of the whole thing, and TextExpander automagically inputs the whole thing for you.
    I have a long email address, because my ISP has quite a long domain name. So only typing 4 characters (my abbreviation) instead of the whole 23 characters was a big help for me.
    Enter the iPad.
    I need to use the iPad now, because my laptop is now too heavy for my legs (and I do occasionally need a full-on laptop, so the MacBook Air isn't the solution). The iPad in general has been great for me. The simplification of the interface (while annoying at times, e.g. not being able to view full headers in an email) saves brain cycles, so I can read for longer.
    However, where on my laptop I only needed to input 4 chars for my email address, on my iPad I have to input the whole 23 chars. How many places online are you asked to input your email address? Way too many. Safari may eventually catch up and record some of them, but currrently, I'm using too much of my day's energy just on trying to input my email address. (Note: this post is written on my laptop, so I can use my abbreviations.)
    TextExpander is available for iOS, but due to Apple's current refusal to allow integration with its apps, TextExpander isn't allowed to input stuff directly. Just like with the indispensable password program 1Password, you have to switch from Safari to the other app., search for and select and copy the text you want, then switch back to Safari, select the field and press Paste.
    Grrr.
    I may get desperate enough to go through those steps each time, if things don't improve with my email address. My problems are:
    1. Very few email-address fields in webpages currently have the appropriate settings to instruct the iPad keyboard not to start with the Shift key down. This means every time you try to input your email address, it will start with an upper-case letter.
    Half the time I don't notice until I've got part-way through typing my address, so I have to delete all those chars and start again. About a quarter of the time, after deleting, I don't notice that the Shift key has been activated again, so I go through the whole process again.
    2. Even when the email-address field turns off the Shift key, or when I remember to do it myself before entering text, autocorrect will insist on changing the first letter back to upper-case, because my username is also my first name. Cue more deleting and getting confused.
    3. This is the big one: once my username is up there, autocorrect insists on entering my "me.com" email address. This is the email address I use least. When I laboriously (again) delete this text and start again, it will either insist again on "me.com", or input my Gmail address. That is the email address I use second least. Autocorrect never inputs my main email address, set as my default account in the Mail-Con-Cal Settings. (This is a POP-only account.)
    4. Even if I do manage to input my whole email address correctly, autocorrect will insist on capitalizing the first letter of the domain name (which is also a location). Cue yet more deletion and retyping.
    Are there any ways to avoid wasting so much energy on trying to input my email address?
    Is there any way to set the default input email address? Or to tell the iPad/Safari that an email address field doesn't require the Shift key?
    I've had my iPad for nearly three months now, using it for my day-to-day activities, and I've been hoping this problem would gradually go away, that the software would finally catch on to my main email address (from the default account) which I have input over and over (and OVER) into email-address fields.
    Evidently not.
    Any ideas?
    Thanks in advance for any help you can offer.

    As Roosevelt suggested, you can turn off Auto Correction in the keyboard settings. Go to Settings>General>Keyboard>Auto Correction>Off.
    This will also turn off spell check (unfortunately) and there is no fix for that. Auto Caps can also be turned off as well and so can the keyboard shortcut for the space/period. Frankly, all of these features drive me nuts and I wish the iOS allowed for more control, but it does not.
    As fars as typing your email address, be aware that even if you type your email address in all caps it still works. So if Autofill insists on capitalizing the first letter in your name in the email address - and it will insist on doing so - you can just let it go as is and it will still work. Doesn't really get to the heart of the matter but it would save you the laborious deleting and retyping.
    Having said that, when the Auto Correction suggests a word or wants to set a capital latter, you can tap the "x" in the pop up suggestion to ignore that word, cap, whatever. The dictionary is then supposed to "learn" your word if you refuse that suggested word enough times. This is another feature that seems to have a mind of it's own at times since sometimes it may take more than a few attempts to get the Auto Correct to not come up and instead allow your chosen word to be freely typed as desired.
    Lastly, with regard to your correct email address popping up, that is another case of if repeated time and time again, It should be another case of the iOS "learning" through repetition that your default email should popup when you begin entering the address.
    You could try to rectify all of this by resetting all of your settings and clearing Autofill but you would be starting all over again which is something I think you would rather avoid.
    Settings>General>Reset>Reset All Settings
    Settings>General>Reset>Reset Keyboard Dictionary
    Settings>Safari>Autofill -tap names and passwords>Clear all
    As Roosevelt suggested, submit feedback, and I hope you find some resolution to this.
    Quick Note - I originally typed this post on my iPad and when I read a few of the words that were substituted by auto correct - I quickly turned to my iMac to change the words. I do feel your pain with regard to auto Correct!
    Message was edited by: Demo

  • Hello. I am trying to create an email address for my iPod touch 5G. It will verify for awhile ask me the SSl question, and fails all the verifications please help!

    I am trying to create an Email address on my iPod and always fails. can anyone give me some solutions?

    Bt SSI do you mean your security question answers?
    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • Setting up email addresses in a text field.

    Hi.
    Can anyone help me.
    I am using Adobe Designer 7.0 and would like to know if there is a way of linking a email address in a text field box to a submit email button.
    As far as I can tell you can only put one email address in the object field and thats it.
    What i am trying to do is let people select a email address from a drop down list and then click the submit email button and it would use the address from the drop down list.
    Thanks
    Mike.

    I set up a form with a hidden "Email submit button" with a default email address.
    I placed another visible button on the page and put in the "click" event the following javascript:
    > EmailSubmitButton1.resolveNode("#event").submit.target = "mailto:[email protected]";
    > EmailSubmitButton1.execEvent("click");
    change the "mailto:[email protected]" to whatever you want, as long as it has "mailto:" in front of it, or else it defaults to a HTTP submit.
    For example, if you want to set the email address to a value from a drop down list:
    > var emailAddress = "mailto:" + DropDownList1.rawValue;
    When the user clicks on the visible button, it's sets the email address on the hidden email button and causes a click event on the button - bingo - email sent to a custom email address.
    Regards
    Anthony Jereley
    Indigo Pacific Pty Ltd
    www.indigopacific.com

  • My photos aren't being moved automatically from my iphone 5c to my laptop. i've tried making sure the email addresses match. how can i be sure? or is there another problem.

    my photos aren't being transferred from my iphone 5c to my laptop. this option had been working on my 4s until just before i changed over to the 5c. i have tried making sure the email address on the phone and the laptop agree. perhaps i haven't done that correctly. or is there another problem?

    Hi graylady66,
    Welcome to the Support Communities!
    Have you set up Photo Stream on your iPhone 5C?  I can't tell what computer you have from your post, so I'll include all of the Photo Stream information for you:
    iCloud: Photo Stream
    http://support.apple.com/kb/PH2596
    iCloud: Set up My Photo Stream
    http://support.apple.com/kb/PH13693
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989http://support.apple.com/kb/TS3989
    Cheers,
    - Judy

  • HT201303 I tried to change my email address on the apple ID but now when I try to buy an app or film it still comes up with my old email address and won't accept  my password to buy anything. My old email address is no longer in use  and can not be access

    I tried to change my email address ID , but now when I try to buy an app or music it still shows my old email address  and won't accept my password which I did not change. What can I do as I can't download anything ?

    What id shows in Settings > iTunes & App Store ? If it's the old one then tap on it and log out of it and then log in with the updated version

  • When trying to verify the email address, I get the following message. Please help. This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID.

    When trying to verify the email address, I get the following message. Please help. This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID.

    Me too. I try to verify and i get the same message.
    I've created 3 alternate e-mail addresses and tried creating new accounts.
    Same Result!
    This is bullsh!t. How the **** can all 4 of my attempts result in the same freakin error???

  • How do i set up email address to print from iphone?

    how do i set up email address so i can print from my iphone into my wireless printer?

    Which printer do you have?
    I was an HP employee
    If I have helped you solve your issue please mark it as solved
    **Say Thanks By Clicking on the Kudos Star**

  • Setting Default Email address in Mail client

    All,
    With using .Mac accounting, I could only use [email protected] for sending email. However, what/how could I do if I want to set my email address to another one?
    Thanks,
    Kenny

    Hi Kenny!
    Do you only see one account there? Only the .mac one? Hmmm...what about if you click on your Accounts tab? How many accounts are there in the left window pane? And assuming you have two accounts there if you click on the account and then click on the Advanced tab in the main portion of the window is the box selected that says enable this account?
    What I'm getting at is if you have two accounts that are enabled you should be able to select which one you want to send your mail from. The only thing I can think of that makes sense is if this other account is not enabled?
    Let me know...Reg

  • HT201320 im trying to set a email up on the exchange and it will not allow me

    I am trying to set a email in exchange and it will not allow me to do so

    I have also tried the fixes offered in this forum such as using the "Other" mail in setting up the gmail accounts, and not using the dedicated gmail setting.  I also went to google and signed in and enable the additional devices.  I had the same problems with the original account I set up for gmail, but it corrected when i went to using the "Other" instead of the Gmail button.  I was able to set up the new gmail accounts on my iphone without problem and on my husband's ipad1 for his gmail account.  Just the ipad 2 is giving me problems.   Again, thanks for any suggestions.

  • I am trying to add my email address to facetime on my iphone4s. Facetime notification is telling me "unable to verify email because it is already in use". What do I do to add my email address?

    I am trying to add an email address for facetime on my iphone4s. Facetime notification says "unable to verify email because it is already in use". How do I add a new email?

    You may be able to find your Apple ID at Look up your old and forgotten Apple ID

  • How do I set up email addresses from my address book?

    How do I set up email addresses from my address book?

    I'm not sure exactly what you are asking.  If you are coming from pre-Mountain Lion, then Address Book has changed to Contacts.
    Open Contacts.
    Select an Account in the group list, if you want the contact in a specific group. If Groups aren't showing, you can display them from the View menu.
    Click the Add card button ( + ).
    Enter the information for the contact.
    If you need multiple entries for a particular field type, a new blank entry will show up below the one you are adding.
    If you need other fields, use the Card menu to Add a new field type.
    If you want to change the default fields available when you create a new card, choose Edit Template…
    If you have sent emails to someone and you want to get that address to add to a Contact, use the Previous Recipients command in the View menu in Mail.
    If you need to add a new Group, hover the cursor over the account name, and a + button will appear. Click it.

  • I'm trying to add the email address for my verizon phone to iMessaging.  In order to verify, you have to reply to an imbedded link in the message.  Unfortunately the link is truncated.  Any idea how to get around this?

    I'm trying to add the email address for my verizon phone to iMessaging.  In order to verify, you have to reply to an imbedded link in the message.  Unfortunately the link is truncated.  Any idea how to get around this?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (122986)

Maybe you are looking for

  • Cannot export responses to Excel or PDF

    I have tried exporting responses to Excel, and when I click Ok to save it, Internet Explorer crashes. The same thing happens when I try to export the detailed view to PDF. I'm using Windows 7, IE 8, and the free version of FormsCentral. I'm not sure

  • Most items are missing from BSIS

    Hi, I'm querying BSIS (direct read from table) via SQ01, and most items are missing. It seems to depend on the general account number: those registered in a profits-and-loss type of account are missing. Those registered in a balance-sheet type of acc

  • R/3 to R/3(Outside the firewall)

    I need to send an IDOC outside our Firewall to one of our vendor and they are receiving the data, in an IDOC. How should I approach this scenario. On the Sender side I need to use the IDOC adapter (No Configuration is needed) on the receiver side wha

  • How to add customer account in the existing variant

    Hi In the customer outstanding balance report, we are using a variant with relavent customer accounts. if we need to add some more customers in the variant how can we do. please help

  • Too hot to use

    Hello Gang, For the last two weeks or so my MacBook Pro has become too hot to use. The bottom is so hot that I can not longer use it in my lap and the top, especially the left side gets so hot that I must stop typing. Also, the fans run continually.