Helps when a special character and is included in the update statement

Hi gurus,


Please suggest me here. Your help is greatly appreciated.

Am wririting an update statement on a column called Phone_num.description varchar2 (40).


Here is my update statement:


UPDATE Phone_num
DESCRIPTION SET = "Beta - EMV / not for the purpose of Production."
WHERE DIAL_NUMBER = 18662307528
AND DESCRIPTION =' to & VERIZON';


Here is the structure of the table:

Phone_num. Description varchar2 (40)
Phone_num. DIAL_NUMBER Number (11)

Sample data:


So when I run the sql script it pop-up is to highlight.

Please suggest how I can handle this.

Hello

As John said, the easiest thing is just to disable the functionality of substitution of variables, saying:

SET DEFINE OFF

before the statement.  If you need to re - enable this feature, then tell

ALL SET ON

just after the statement.

If you can't do that, then break the literal string in 2 parts immediately after the & character, like this:

UPDATE Phone_num

DESCRIPTION SET = "Beta - EMV / not for the purpose of Production."

WHERE DIAL_NUMBER = 18662307528

AND DESCRIPTION = ' to &'. | "VERIZON";

You can't have a substitution variable whose name starts by ', then SQL ("more does not interpret &" as meaning a substituton variable.)

Tags: Database

Similar Questions

  • Web development Toolbox prevents me from using the letter upercase, special characters and all that requires the use of the SHIFT key. Help.

    whenever I press the SHIFT key, the web development Toolbox opens. I am unable to use the letter upercase, special characters and everything that requires the SHIFT key. It's really annoying me... i can't even use an exclamation mark111111

    The sounds you have a sticky key which is in the pressed state.

    Do you mean the box tools that should open via Ctrl + Shift + K or open more to the Toolbox that is displayed via Ctrl + F2?

    Try to press the keys involved several times, see the Web Developer menu for the shortcut keys.

    Have you tried to close and restart Firefox or restart the computer?

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • On my iMac OSX El Capitan v 10.11.3 when editing of photos and work between them the screen takes over and moves the picture on the next picture before Ive had the chance to edit, I then fold the photo required to try again. This can hap

    On my iMac OSX El Capitan v 10.11.3 when editing of photos and work between them the screen takes over and moves the picture on the next picture before Ive had the chance to edit, I then fold the photo required to try again. This can happen several times and its so frustrating.

    Similar thing TI also occurs when you are working on other programs on the mac, but not nearly as much.

    Guessing here, but try to disable drag between pages on the tab more than movements in the system preferences > mouse. or a Trackpad. Depending on whether you are using.

  • need help with the Update statement

    Hello
    I received a question in a course and I tried my best to respond, and now my brain is giving. I would really appreciate help with the update statement. I don't mind if you do not validate a solution, a little nudge in the right direction would be really useful. I'll post that I got.

    THE QUESTION
    / * For these agents disabled on more than seven missions, change their date of deactivation of the first date of deactivation of all the agents that have been activated in the same year as the agent that you update currently.
    */

    I have it divided into parts, here is my select statement to agents disabled on more than 7 missions, which produces the deactivation_dates in the agents table that I want to update...
    SELECT
    s.deactivation_date
    FROM
    (
    SELECT
    a.deactivation_date,
    count(m.mission_id) as nomissions
    FROM
    agents a
    INNER JOIN
    missions_agents m
    on
    a.agent_id=m.agent_id
    GROUP BY
    a.deactivation_date
    ) s
    WHERE
    s.nomissions>7 AND s.deactivation_date IS NOT NULL
    .. .and the code for the first date of deactivation for each year of activation agent
    select 
    a2.deactivation_date
    from
    agents a2
    where a2.deactivation_date= 
    (
    select min(a.deactivation_date)
    from 
    agents a
    where to_number(to_char(a.activation_date,'YYYY'))=to_number(to_char(a2.activation_date,'YYYY'))
    )
    ..... I am not real to marry these two statements together in the Update statement. I can't extract each date of deactivation produced in the first select statement and their match against the first date of deactivation in the year they have been activated for the second select statement.

    Any help greatly appreciated... :))

    I began to wonder how things would :)

    user8695469 wrote:
    First of all why he chooses the date the earliest of all agents

    UPDATE  AGENTS_COPY AC /* (1) */
    SET     DEACTIVATION_DATE = (
    SELECT  MIN(AGS.DEACTIVATION_DATE)
    FROM    AGENTS_COPY  AGS
    ,       AGENTS_COPY AC /* (2) */
    WHERE   TRUNC(AGS.ACTIVATION_DATE,'YEAR') = TRUNC(AC.ACTIVATION_DATE,'YEAR') /* (3) */
    )
    

    He recovers as soon as the subquery has not been correctly set in the SET clause. It seems you are trying to update a correlated, but we are still having a conceptual shift. I have added a few comments to your code above and below will explain.

    (1): when you do a correlated update it is useful to the table alias that you did right here.

    (2): this table statement is not necessary and is the reason why the FIRST deactivation date is selected. The alias that you use (3) refers to THIS table, not the one defined in the update statement. Remove the line indicated by (2) in the FROM clause and a correlated update will happen.

    and secondly why is it to update each row, when I thought that I'm just the lines where the agents are disabled and missions > 7? Pointers on where I'm wrong would be very appreciated. (SQL = stupid query language!) :)

    user8695469 wrote: then why is it to update each row, when I thought that I'm just the lines where the agents are disabled and missions > 7? Pointers on where I'm wrong would be very appreciated. (SQL = stupid query language!) :)

    
    WHERE EXISTS
    (
    SELECT
    a.agent_id,
    count(m.mission_id)
    FROM
    agents a
    /* INNER JOIN AC ON AC.AGENT_ID = A.AGENT_ID */
    INNER JOIN
    missions_agents m
    ON
    a.agent_id=m.agent_id
    GROUP BY
    a.agent_id,
    a.deactivation_date
    HAVING
    count(m.mission_id)>7 AND a.deactivation_date IS NOT NULL
    )
    

    Once again this problem is similar to the question above that a correlation update doesn't work. Test existence of lines in an EXISTS subquery. Since your subquery is not related to the table that you are trying to update, it will be always return a line and, therefore, it returns true for EACH LINE in the AGENTS table. To limit the game to only agents > 7 missions results, you need to add a join condition that references the table in your update statement. I added one above (with comments) as a sample.

    I recommend you look over all material that you have associated with correlated subqueries, including documents that I posted above. This seems to be what you're having the problem more with. If you need me to explain the concept of correlated queries any better please let me know.

    Thank you!

  • States, how to access the components not included in the current state?

    I have two State put in place for my application. I have a creationComplete triggering my init function and a lot of listeners are then added here and there throughout the app. The only problem that I am running is that an element is not included in the default state, but I'm trying to add a listener to this component on my init function, and it gives me a runtime error stating that the component (which is not included in the default state) is a null object.

    How can I force this component is instantiated when the application is created?

    My best guess was to put a creationPolicy on 'something' to instantiate components "all".

    Thank you!

    See the section "Creation of Custom and Destruction policies ' of this specification:

    http://opensource.Adobe.com/wiki/display/FlexSDK/enhanced+States+syntax

  • I've updated VIA / S3G UniChrome IGP plug-and-play reverse, but the update still no resolution 1600 x 1200 with the exception and others with the same ratio of 4 x 3.

    I've updated VIA / S3G UniChrome IGP plug-and-play reverse, but the update still no resolution 1600 x 1200 with the exception and others with the same ratio of 4 x 3. That did not help.

    Hello

    1. What version of Windows are you using?
    2. What is the brand and model of the computer?

    I suggest to run the patch from the following link and check the status of the issue.

    Hardware devices do not work or are not detected in Windows.

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    If the problem persists, I suggest you to send us more information to help you better.

  • 0 x 80240036 get this error code and don't do the update.

    0 x 80240036 get this error code and don't do the update. Message says "the website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. Ive tried for three days to do the update and I tried at home and at the office, but I get this message.

    I have updated to internet explorer 8, and then it worked.

  • Can I keep my itunes account in the United Kingdom and add applications to the United States on my account so that the United States pls.?

    Can I keep my itunes account in the United Kingdom and add applications to the United States on my account so that the United States pls.?

    How long you will be in the United States? To use the US store, you must be physically located in the United States, have issued US credit card and billing address in the United States on this credit card. Without it, you won't be able to change for the US store. And, you can only change stores every 90 days.

  • I have a few updates that will fail and she keeps offers the update of these points - I noticed that he often has to do with something related 64-bit.

    I updated my newly installed Windows 7 Pro (64) and many update took place, BUT...

    I have a few updates that will fail and she keeps offers the update of these points - I noticed that he often has to do with something related 64-bit.

    How document and fix this?

    Welcome!

    See if using the auditor system in Windows files can repair the files of Windows updates:

    https://support.Microsoft.com/en-us/KB/929833

    Similarly, you can reset Windows updates by following this here:

    https://support.Microsoft.com/en-us/KB/971058

  • a special character and Proxy authentication

    Hello.

    Is it possible that le proxy record on creative cloud only without Special characters work? or used creative cloud only English keyboard layout?

    Creativ cloud stores le proxy Settings?

    greetings.

    Hello

    This link might help: Cloud with proxies - evidence and solution

    Kind regards

    Sheena

  • I need help to swap my iphone 6s I bought from the United States and I can't replace it here in India

    Hello Apple

    I bought an iphone 6s on the apple store in Tampa, Florida in December 2015 and it worked for a few months and then it started giving a problem that I remove the charger, the phone will of I talked to apple care him they tried every possible means to help me in restoring the software and all but however there seems to be a hardware problem , so for that I have to send the phone to an Apple store outside the India which is not possible for me because it is very expensive for me, this phone can be replaced in case India model number. its been a month now that I can use my iphone 6s, what should I do I need urgent help. on the purchase of the phone, they told me its guarantee in the world and can be replaced in India, but now he can't be replaced here please do help me with the same

    I'm sorry, but nobody here can help you. We are just other users of products Apple here. You must contact the Apple support and ask them about it.

    The warranty of the iphone, however, has never been international. He always included the clause that support may be limited in the country of purchase. I don't see any solution for you other than to exchange the defective unit in the United States.

  • When playing xbox live and someone turns on the laptop he loses the connection to the server and then resets modem

    when im playing left 4 dead 2 versus and kids turns to the top turn of the page to play counterstrike he says: interruption of the connection to the server and then resets my modem or router

    I had the Charter to come out, they ran the new line and I always have problem help me please

    Hello

    ·         What operating system do you use?

    Step 1:

    I suggest you to update the firmware of the router on the manufacturer's Web site and verify that it helps. For more information on how router update contact your router manufacturer's support site.

    Step 2:

    Try to assign the static IP address for an Xbox 360 and the laptop and check if it helps.

    To assign a static IP address for your laptop:

    one) click Start > Control Panel > network and Internet > network and sharing Center and click on change adapter settings.

    (b) select your network adapter. (if you have more than one list) Right-click on the adapter and choose 'Properties' from the list.

    (c) under "this connection uses the following items," click once on "Internet Protocol Version 4 (TCP/IPv4) to select it and then click on the button 'Properties'.

    (d) click the radio button for "use the following IP address:" enter the static IP address, you want to use in the IP address box.

    (e) press "Tab" when you are finished and that the "Subnet mask" value should automatically populate with the correct value.

    (f) Finally, you will need to enter the IP address of your default gateway and the IP addresses of your favorite servers and auxiliary DNS.

    (g) the default gateway is the IP address of your router. The DNS addresses are usually provided to you by your ISP.

    (h) click on 'OK' to save your changes, and then click 'OK' again on the local area network connection properties window. You have now assigned to your computer a static IP address in Windows

    To assign a static IP for Xbox:

    (a) turn on the console and press "Guide" on the controller to bring up the quick menu.

    (b) go to the 'Settings' tab, then open "System Settings." The dashboard opens and the 'System settings' menu.

    (c) select 'Network settings' in the menu new. Another list of menu options is displayed. Choose "Configure network." This opens the network configuration menu, where you can set a static IP address. Note your IP address, subnet mask and gateway.

    (d) change your settings 'IP' to 'Manual' instead of 'automatic '. This will allow you to manually select your IP address and other settings. It can also erase your current settings, that's why you need to write.

    (e) change the last three digits of the IP address. Enter the same numbers for the subnet mask and the gateway that you saved in step 3. Press 'B' to exit from the menu and save the changes

  • Help - profile change Service models and policies without changing the existing MAC or WWN vNIC and vHBAs

    Hello

    I would like to know if there is a way to preserve existing vNIC MACs and WWN vHBA if I change the model of a Service profile?

    To clarify, our Service profiles have been created since an initial model, and now we'd like as these Service profiles to point to a - model - update to simplify management.

    Initial-template originally provided manually created vNIC and vHBAs and used no LAN or SAN connectivity political, but the new updated model made.

    VNIC names and vHBA names, as well as the MAC and WWN used in connectivity pools policies update-model are the same as those currently used by the Service profiles.

    To rephrase the question:
    Is it possible to change initial-model a Service profile to a template update with essentially the same everything, without changing the UUID currently in use MACs of the profile Service, WWN and perhaps?
    If the answer is that they are not the same when this happens, then someone know of any workaround?

    Thanks for your help!

    RR

    Hi RR

    With respect to the Central of the UCS and sequential allocation:

    https://supportforums.Cisco.com/discussion/12006286/UCS-Central-sequenti...

    http://www.Cisco.com/c/en/us/TD/docs/unified_computing/UCS/release/notes...
    New features in version 1.1(2a)
     
    Allocation of ID sequential for pools, such as addresses MAC, WWN, IP and UUID

    The procedure I would use:

    -Create the update model

    -remove the link 1. Initial model EP

    -delete this 1. SP (this helps to release all the values in the pool)

    -create new MS to model update (it will inherit above pool values)

    -Repeat for all AOCS

    I did this several times without problem (for example, no need to change the zoning of FC). Of course it is disruptive, by blade and SP.

    Don't know if this unbind / bind procedure works without reserves.

    See you soon

    Walter.

  • Constant freeze (on IE9 and mozilla and media players) after the updates of windows, please help?

    Hello

    I have a bit of a situation, which I believe can be due to windows updates. I'm not very experienced with computers, but I know that I have no viruses on my computer, or malicious software, and I have corrected all the mistakes of registry. I have a dell xps l702x, i5 2.4 GHz, 8 GB of RAM. I had this problem for over 2 months and I just ran out of options on how to solve this problem. I reinstalled windows 7 all about 3 times over 2 months, and I have an idea about what's going on. My computer's internet browsers, which means of IE9 and mozilla firefox keep freezing when I use them. I tried to use internet explore with no. Add ons, without success, as well. I have a few movies downloaded, to freeze when I try to play them in VLC Player. When I re-installed windows 7, I used my pin code files for install base running programs. After windows updates (which were just of securities system and IE9) I started having the gel. It seems that some program moves data to and from the hard disk are the culprit. If I opened IE9 and it loads the homepage, if I move my mouse it freezes instantly, without ctrl + alt + delete to help me.

    Help, please!

    Do not use the programs OWN more.  They do little good and can cause problems.  What may happen, it is that these programs can find registry entries that do not appear to be used, then remove them.  MS has put some of these here for future use, and when the updates come and try to use entries that has removed the vacuum cleaner, you encounter this kind of problem.

    It is also possible that you may have an overheating or other related materials the problem, but if you have used a cleaner program, I would try to reinstall and do not use it to see what happens.  If that does not resolve the problem, you can check the time with SpeedFan, run the memory diagnostics, run drive Diagnostics, run chkdsk, etc., but reinstall without the program cleaning everything first.

    Also, you need only to download drivers from Dell, not Intel or update MS or anyone else.  This is another way people get into trouble.

    Good luck.

Maybe you are looking for