Why does this work in MS SQL and not in Oracle

ALTER TABLE Stk
DROP COLUMN ComCode;
This BASIC statement works perfectly
in MS SQL, but after 2 hours now, it
simply refuses to work in Oracle,
although the syntax seems correct, I
get :
ALTER TABLE Stk
DROP COLUMN ComCode
ORA-00905: missing keyword
null

Stop trying! Oracle simply does not support the DROP COLUMN syntax. A work around is:
CREATE another table based on the original table, minus the column you want to drop.
(CREATE TABLE new_table AS SELECT col1, col2 , ... FROM old_table)
DROP the original table.
(DROP TABLE old_table)
RENAME the new table the old table.
(RENAME new_table TO old_table)
Your have to manually add the constraints, if the old table has any.
Eric Ma

Similar Messages

  • Why does wireless work for one laptop and not the other?

    I have two laptops:
    1) MacBook: 10.4.8, Airport Exteme (Firmware 1.0.46)
    2) G4: 10.3.9, Airport Extreme (405.1 (3.90.0.p18)
    I have the two machines sitting right next to each other in my apartment. Machine #1 has full wireless signal strength. Machine #2 barely has any wireless signal. Neither is running Interference Robustness. Any ideas why one would work and the other would not, or suggestions as to how to debug this problem?
    I have tried stopping and restarting the Airport Extreme card on machine #2. I have also tried power cycling machine #2. This does not fix the problem.
    A little more history: for a long time I was having problems with machine #2 dropping the wireless connection. As part of trying to work around these problems I turned on Interference Robustness on machine #2. This fixed the dropping signal problem, but left me with weak signal strength. I shut off Interference Robustnes but ever since then the signal has still been weak on machine #2.
    Mac Mini Duo 1.66 GHz, 2 GB   Mac OS X (10.4.6)  

    The base station uses a single channel which all clients must use to connect.
    Have you checked the antenna connection into the card? Many people are surprised about how far the wire is actually supposed to be pushed into the card. Compare the connection with the photos in KB 108039, Properly attaching the antenna on an AirPort Extreme Card.

  • I have 2 ipad 2s.  On the newer one I can log in and update to IOS 5 with no problem.  On the older one I get the message "Your Apple ID has been disabled."  Why does it work on one ipad and not on the other?

    I have 2 ipad 2s.  On the newer one I could log in and update to IOS 5 withno problem.  On the older one I get the message "Your Apple ID has been disabled." No other explanation.  Why can I log in on one ipad and I'm disabled on the other?

    Well, I spoke too soon.  Yes, I'm using the same account on both iPads, but I just changed my password for the umpteenth time and now I get the disabled message on both iPads.  Just yesterday I was able to upgrade one to IOS 5 but got the error message on the other.  I'm getting more confused by the minute.

  • HT5781 why does my iPhone 4 ping constantly and not connect to my macbook air

    why does my iPhone 4 ping constantly and not connect to my macbook air in itunes

    Hi, pinkshaz. 
    You may find this article helpful when troubleshooting iTunes not recognizing your iPhone.  If you have any security software, disable this software and test the results.
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    Cheers,
    Jason H.

  • Work-around The Whine: why does this work? And is it BAD?

    Hello everybody, sorry to bring up The Whine again, but I was wondering if anyone can figure out why the following trick works to eliminate the noise.
    Also, could doing this regularly (all the time, basically) potentially be bad for the system in any way?
    This is the work-around I've been using:
    1. Open Photobooth, then Force Quit that application (you must Force Quit rather than simply quit)
    2. Put the Macbook to sleep, waiting a few seconds until the indicator light starts pulsing.
    3. Wake up the computer.
    Voila. That always does the trick, eliminating the whine until either the next time I boot up or the next time I open and quit Photobooth in the normal way.
    I suppose force quitting may keep the processor slightly busy somehow?
    Don't know...

    John P.,
    You say that all the notebooks that you know of make
    some kind of noise. How many notebooks is that? Not
    trying to be a jerk or anything but it better be like
    dozens and dozens to make this claim. I have heard
    the exact opposite of this claim from users that have
    owned a few notebooks as well.
    Hi Jerome,
    No problem... I'll clarify..
    5 notebooks personally, so when I say "all notebooks that I know of", it's a true claim because that is exactly what I'm saying.
    If this noise is caused by capacitor that is at some
    miniature threshold then why does the noise go away
    when said remedies are employed? Does the capacitor
    get bigger? Doesn't make sense but I appreiate that
    you want to reassure original poster.
    Actually I may have misspoken--it may be called a "voltage regulator" and it sits directly West of the CPU and controller chip. They do make noise and from what I have been told and remember, they can dampen it w/ a capacitor but that's about it. It's just the nature of the beast for that type of component, I'm told.
    What "I" think it may be is the power fluctuations, or lack thereof, in the Intel chip causing it--when you put a load on it, there's a power fluctuation because your CPU usage is going up/down a little bit, but when you're not doing anything it's very little it causes it to make a little noise. No big deal, but just as long as it's not blaring in your ear when you're trying to use your computer. My ZV6000 does the same thing, but it doesn't matter when you've got a load or not--seems to do it more when I have Cool 'n' Quiet enabled.
    This is not right. I am sorry.
    If this noise is normal then I'll take no MacBook.
    You know it is being fixed apparently on the MacBook
    Pros by motherboard replacement.
    I never said anything about pro. I don't own one, nor have I used one. I can't say how profound in comparison to the Macbook (non pro) it is.
    I'm sure if Apple thought it was a big enough problem, they would act either more quickly about it, but it's not stopping me from checking my e-mail or going on the Web.

  • Why does this work?

    I've been practicing some IPSec VPN scenarios, starting with the typical site-to-site VPN:
    Router A
    crypto map mymap 10 ipsec-isakmp
    set peer 1.1.1.2
    set transform-set myset
    match address 101
    access-list 101 permit ip 10.1.1.0 0.0.0.255 10.1.2.0 0.0.0.255
    Router B
    crypto map mymap 10 ipsec-isakmp
    set peer 1.1.1.1
    set transform-set myset
    match address 101
    access-list 101 permit ip 10.1.2.0 0.0.0.255 10.1.1.0 0.0.0.255
    This works as expected. Traffic from 10.1.1.x on Router A gets picked up by the crypto map and sent to RouterB and vice versa. What is confusing me is a more advanced scenario where I'm tunnelling GRE over IPSec with OSPF (why? Because I can).
    http://www.cisco.com/en/US/tech/tk583/tk372/technologies_configuration_example09186a008009438e.shtml
    Everything works just fine, but I'm bothered by the ACLs being used in the example. I don't see how everthing should be working- OSPF is fat and happy, and if I ping one spoke from another spoke from a loopback interface, it works as well. In this case, is the network traffic being picked up by the Tunnel interface first, and all the crypto map sees is GRE traffic by the time the packets make it that far?

    Ian
    You ask a question about the access lists and I believe that it will be easier to answer the question if we have the access lists to refer to. So here they are:
    7206:access-list 130 permit gre host 14.36.88.6 host 14.38.88.40access-list 140 permit gre host 14.36.88.6 host 14.38.88.20access-list 150 permit gre host 14.36.88.6 host 14.38.88.102610:access-list 120 permit gre host 14.38.88.10 host 14.36.88.63620:access-list 110 permit gre host 14.38.88.20 host 14.36.88.6
    3640:
    access-list 100 permit gre host 14.38.88.40 host 14.36.88.6
    one of the first things to understand here (and you briefly mention it in your post) is that they are running OSPF dynamic routing protocol over the tunnels. So each router sees the path to get to the other router as being through the tunnel. So when the 2610 wants to get to the 7206 it will send that traffic to the tunnel interface. The tunnel interface will encapsulate the original packet in a GRE header. So yes the only thing that the access list will see is GRE traffic.
    Anything that goes through the tunnel (whether it be a data packet or an OSPF routing update) is encapsulated in a GRE header and the access list does not see the original data but sees only GRE.
    HTH
    Rick

  • Why does my iMessage use my email and not my phone number?

    I upgraded to IOS 5 recently and my friend wondered why he had to use my email to message me and not my iPhone's number. My carrier is Verizon and I bought my iPhone 4 in January. Does anyone know how to fix this? I already have done a system restore and that did not work.

    Go to Settings>Messages>Receive At>Caller ID and select your phone number instead of your email address.  If you don't see your phone number and/of you don't see the Caller ID setting, your phone number is not yet activated with the iMessage server (and you will notice that is says "waiting for activation" under iMessage).

  • Why does my ipod touch turn off and not turn on for a while

    every once in a while my ipod touch turns off and wont turn back on for a day or two. So why does it do this, it is from over use of the ipod?

    Try the following fixes in order:
    - Reset:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore the iPod from backup via iTunes
    - Restore the iPOd to factory defaults/new iPod
    If yo still have the problem you likely have a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Why does my HP photosmart say save and not print?

    When I go to print on my 6700 Premium printer...the dialogue box on my iMac defaults to "save" instead of "print". How do i get the dialogue box to open to "print"?
    This question was solved.
    View Solution.

    Hi,
    What application you are printing from?
    Ensure the proper printer is selected.
    Google Chrome as example defaults to Save as PDF and not to the HP printer, till clicking on Change button and selecting the printer.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • My question is that why does this happen my ipod touch is not jailbroken nothing i forgot my passcode and everytime on youtube i says to restore but it wont work what do i do

    i NEED HELP QUICK

    Place the iOS device in Recovery Mode and onnect the iOS device to your computer and restore via iTunes.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Filter as autoload trigger; why does this work?

    In my efforts to use PS consoles more and CMD consoles less, I've been "porting" my environment over. One of the things I can't live without is my 'cd aliases'. I have several aliases like: "src=cd /d c:\src" (loaded in doskey). Separate
    functions for each alias seemed kludgy, so after a bit of playing around, I came up the little module below to mimic the functionality. The function takes a look at the alias that invoked it and sets the location based on values in a hashtable.
    Since the aliases are dynamically created and thus aren't available to trigger the autoload, I decided to add a filter to do the triggering (I could just import the module in my profile, but I try to keep my profile lean).
    My thought was that I could type 'src' and if the module wasn't loaded, it would cause the autoload to happen which would override the filter 'src' with the alias 'src'. Typing 'src' a second time would actually set my location to my source directory.
    When I tested the 'filter autoload' however, I was pleasantly surprised that not only did it autoload the module, but it did the set-location on the
    first invocation.
    My guess is that PS sees the command 'src' and when it's passed looks at the modules that can satisfy the command. Finding a filter named 'src' in CdAlias.psm1, it autoloads. Then PS, knowing that the needed module is now loaded, resolves 'src' against the
    now-current environment, finds the alias, resolves that to Set-XLocation and we are off to the races. That said, I'm only guessing here, and since this seems like something that could be useful in other places, it would be cool if someone could confirm my
    guess or explain what's really happening.
    thanks,
    K.
    Note: This is the prototype, I will actually store the hashtable in the registry along with functions to edit the entries.
    <#
    .Synopsis
    Sets location based on the alias name used to call the function
    .DESCRIPTION
    Uses the name of the alias used to call the function to look up
    a path in the script-scoped dictionary 'xlocation' then sets
    the location to that value.
    .PARAMETER ChildPath
    Optional child path, if passed it will be joined with the base.
    .NOTES
    Not sure why the filter trick works, but it does. Since src is my
    most commonly used alias location, I can use it to auto-load. What
    really confuses me is that it still sets the location to src the
    first time I type it.
    #>
    function Set-XLocation
    Param
    [string]$ChildPath
    $k = $MyInvocation.InvocationName
    if ($Script:xlocation.ContainsKey($k))
    Set-Location -Path (Join-Path -Path $Script:xlocation[$k] -ChildPath $ChildPath)
    else
    Write-Warning "`$xlocation does not contain the key '$k'."
    $Script:xlocation = @{
    src = 'C:\src';
    one = 'C:\src\one';
    zero = 'C:\src\zero';
    mod = "$mod";
    foreach ($k in $Script:xlocation.Keys) { Set-Alias -Name $k -Value Set-XLocation }
    filter src
    Export-ModuleMember -Function Set-XLocation -Alias *

    I do not understand what the issue is.  If you have to create a filter for every alias you are not really gaining anything over defining a function or alias.
    I do not believe the filter does anything except create a reference:
    PS C:\src> get-alias src
    CommandType     Name                                              
    ModuleName
    Alias           src -> Set-XLocation                              
    CDAlias
    ¯\_(ツ)_/¯

  • Why are you not working? I can't figure out why this works in 1 doc, and not in another

    I'm trying to take info from a cell on 1 spreadsheet and have it populate into a different one (pending if checkbox is true or not). I've been able to do it with 2 files but for some reason this one isn't doing what I need. If the checkbox is unchecked the text should stay in the new spreadsheet cell, if it's checked I want the row removed, but for reason instead of removing the row it just places a 0 in the cell.
    This is what I want:
    Like I said it works great on the other doc, just not on this new one. (the 2 docs vary with some of the text, but in the second image I've "checkboxed" out some of the text)
    Please help!
    Thanks!
    Nikki

    You may have the wrong cell reference  (B2) in the second part of your formula. If B2 is empty, the result will be displayed as a 0. Did you mean to have A2 in both parts of the formula?
    SG

  • Why does this work? (dmenu_run shell script...)

    I'm very confused at what this is doing. dwm knowledge would help to understand my question. I don't understand how this script can take a font name with a space in it, the way dwm's default config does, and understand it as one argument.
    #!/bin/sh
    exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe
    Before updating to a newer version of dmenu (where this is included), I had written my own dmenu_run script. Although I wrote it, I actually don't understand how this one worked either. It was a trial and error thing, and when I try to think it through I always conclude that it shouldn't work.
    #!/bin/bash
    IFS="\t" # (was actually a literal tab character in my script)
    `dmenu_path | dmenu $*`
    This does not work without redefining $IFS, so I figured that dwm is not somehow making sure that spaces are interpretted correctly. But by stopping spaces from separating arguments, shouldn't this cause huge problems for everything except the font name?
    An example of how this would be called by dwm:
    dmenu_run -fn -*-dejavu sans-medium-r-normal-*-12-*-*-*-*-*-*-*
    (Note the space in the font name)
    So what is going on here? I realize that my question is somewhat confusing. I'm happy to clarify anything that is confusing - I found it very hard to clearly ask this question.
    Last edited by fflarex (2008-11-07 05:06:24)

    First off, sorry for all the shell-speak. This is a bit of an edge case, so it's sort of unavoidable. That said, I'll summarize what you need to know at the end.
    The dwm version of the script uses $@ in double quotes. @ contains all the parameters passed to the shell, just like * does. The main useful difference is a special case: when double-quoted, $@ expands to the list of arguments, each as a single shell word. Double-quoted $* expands to the list of arguments as a single word delimited by $IFS. (Both variables expand to the list of arguments [with word splitting applied according to $IFS, hence your spaces problem] when unquoted.) Here's the logic flow:
    1. dwm calls dmenu_run with the list of arguments specified in your config.h. It calls it directly, not running a command through a shell, so word splitting is never performed and spaces in values don't matter.
    2. dmenu_run calls dmenu with the list of arguments it was given. It uses two shell tricks: first, quoted-@ to pass the list of arguments without word splitting. Second, the ${foo+bar} expansion syntax, which expands to bar if foo is defined, otherwise the null string (""). So it expands to the full list of arguments, each as a single word, only if arguments were passed (if $1 is defined).
    What you need to know: You almost always want to use '"$@"'. Unless you want all your arguments as a single string, in which case you want '"$*"'. Other forms are practically useless.
    Last edited by skymt (2008-11-07 14:26:58)

  • Why does my video clip look faded and not work on my timeline?

    I am making a simple short movie on my timeline. In fact, I already made it.
    However, when I added a credits sequence (which used to look fine and worked normally), I ran into a problem.
    Now, on my timeline, the little purple box that indicates the credis sequence is a little faded. Also, the text in the credits is inexplicably invisible, and can't be modified to any form of invisibilty.
    How did I manage to create this mess, and how do I get my credits to look normal again?
    -Jason Luna

    Could it be that you disabled the scrolling title( I assume that is what you mean when you say "Credit sequence"). Hitting the V key when a clip/title is selected will disable it. Select it and hit V and see if it fixes your problem. If it is disabled you won't see the text.

  • Why does a flash show in IE and not Firefox?

    The flash on the website wrrp.org does not show in Firefox and the copyright statement shows in the middle of the page when using Firefox.

    There is only object code with a classid for IE and no code for Firefox. Firefox ignores code with a classid.
    This should work:
    <pre><nowiki><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" height="238" width="766">
    <param name="movie" value="flash/main2_v8.swf">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <!--[if !IE]>-->
    <object data="flash/main2_v8.swf" height="238" width="766" type="application/x-shockwave-flash">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
    </object>
    <!--<![endif]-->
    </object>
    </nowiki></pre>

Maybe you are looking for