Equivalent of "exists"

is there an equivalent of keyword "exists" in PL/SQL?
I am trying to use but it fails:
if exists(select TABLE_NAME from user_tables where TABLE_NAME = 'UNSUBS_RECORD';); then
Drop Table UNSUBS_RECORD;
Create Table UNSUBS_RECORD (IPKID number, dt_prod2staging date, vch2_execution_Source varchar2(255), dt_kana2onyx_transfer date);
end if;
and the returning error is:
unknown command beginning "if exists(..." - rest of line ignored.
I appreciate your assistant

Hi
I would do it like this
begin
-- see if the table exists
select TABLE_NAME
from user_tables
where TABLE_NAME = 'UNSUBS_RECORD';
-- table exists, drop it
Drop Table UNSUBS_RECORD;
-- create it
Create Table UNSUBS_RECORD
(IPKID number,
dt_prod2staging date,
vch2_execution_Source varchar2(255),
dt_kana2onyx_transfer date);
exception
when NO_DATA_FOUND
then null;
end;null

Similar Messages

  • Windows "equivalent" to iDVD (and rest of iLife Suite)

    Hello everyone.
    I'm working on a presentation for my English class and am trying to convince the class that an Apple computer is the best one for a college student.
    One of my arguments is the inclusion of iLife and the money it can save.
    However, I have very little knowledge of what equivalent programs exist for a machine running Windows XP. I know iPhoto can be replaced by camera software included with a digital camera, but what about the rest of the iLife Suite?
    Any input is greatly appreciated. Thanks much!
    ~Lyssa

    .. I know iPhoto can be replaced by camera software included with a digital camera..
    naw.. not really...
    iLife is a bundle of apps, working TOGETHER...
    as many Apple apps, it sets strong limitations... file formats, file locations, workflow.. but, these limitations lead to simplicity and convenience..
    in Windows, you have by far more 'options' ... which a) I don't need, b) confuse me...
    PC users don't 'like' a single app 'grabbing' all files.. (read posts in the iTunes4windows section...) for me, as an old Apple user, it is perfect, that iM, iDVD, iPhoto offer all in the same dialog all my music.. and playlists.. or albums...
    on PC, you're offered with zillions of apps.. some free, some cheap shareware.. but none work together, no 'team up' .. I tried some Ulead products.. nice, zillions of effects (which I never need...) - but when it comes to 'burn a DVD of that', I'm lost again in options.. within minutes, the parts of your projects are anywhere from c:/ to g:/ .. ;))
    iLife is an excellent choice for beginners, who don't want to care for tech background, but 'just doin' ...
    on PC, you need at last one SysAdmin (=$$$), who cares for the 'health' of the system... the TCO (total costs of ownership) IS still higher on PCs.. I'm still able to use my 7y old iBook G3 for movie making with iM 3...

  • Is there an app to find duplicate photos on my ipad2 ios 7.04

    I have many photos stored on my ipad and probably through sheer incompetence have managed to produce an awful lot of duplicates.
    There seem to be several apps to identify such duplicates so that they may be deleted easily but I can only find apps designed for Mac users.(or am I being thick yet again?)
    Does an equivalent app exist that I may use on my ipad2 ios 7.04 ?
    There are far too many pics for a manual operation.
    Would appreciate any suggestions.
    Thank you

    Thanks for that, but I only have a very old, decrepit PC which is expected to expire at any minute. I've had my ipad for nearly 2years now and my thinking was that I could manage with that alone - not replacing the PC at all.
    In general this has worked well and I really love the ipad.
    The only thing that I found difficult to get to grips with was excel. I've been using the OfficeHD app and that has worked well up to a point but I have now succumbed and invested in a surface tablet, mainly to get around the excel problems.
    Sadly the Surface too, does not appear to have an app to hunt out the errant duplicates.  Wasn't planning to load my pics onto it anyway as the ipad handles them very well in general.
    All this could probably be worked around if I was more competent but a magic app would really be my preferred option!
    If you have any further thoughts they would be much appreciated.
    Thank you

  • Unable to format or restore - 160GB Classic

    Hello. I currently have an issue with an 160GB iPod classic as it won't restore or even reformat now, and the iPod is completely blank
    In the usual mode, the iPod freezes iTunes straight away and also freezes My Computer when I try to click on the iPod entry. In disk mode, the iPod is available in My Computer to click on and move forward on the drive page, however the iPod isn't recognised in iTunes at all.
    Previously, I was able to reformat the iPod, which in turn allowed me to restore the iPod after several attempts and it started to sync the songs held on iTunes. Sadly this didn't complete and crashed midway through. I have been unable to get back to that restore stage.
    I have tried this iPod on a seperate computer and it does exactly the same thing, however the other computer works fine with a different iPod.
    Any advice would be greatly appreciated. Let me know if you need more information from me to work out a solution.

    Okay All, I have figured this out.
    This fix I know works on Windows but the equivalent functions exist in MAC OS as well I simply will not be able to assist with the step-by-step. So the goal here is to reformat the drive--basically 'slick' it so as to reload. The keyword here is "reformat" vice "reloading". Once you reformat then you must "restore" but I get ahead of myself. Here are the steps:
    1. Connect iPod to sync cable.
    2. Go to windows explorer window and find "___ ipod" or whatever your ipod is labelled.
    3. Right Click on ipod icon and select "Format"
    4. Leave default settings: FAT32(Default) and ensure "Quick Format" is checked
    NOTE: This WILL ERASE ALL data on your iPod.
    5. Click "Start"
    Once completed it will inform you of as much "Format Complete"
    6. Right-click and select "Eject"
    7. Place one finger on the center button and another on Menu simultaneously for about 6 seconds. This will reset it if locked (as mine was). I was getting errors when trying to connect to iTunes and CopyTrans and this was the fix.
    8. Reconnect to computer
    9. Launch iTunes
    10. "Restore" the iPod in order to load latest software and yada yada. Your iPod will NOT work without this. Upon completion
    11. "Eject" again
    12. Choose "English" manually on the iPod and
    13. Reconnect and use as if brand new and loading music / videos / pics on it.
    Hope this helps all of you. God bless.

  • How to catch user break from OI ?

    I'm using slightly modified standard CVI OI shipped with TS.
    I have a sequence in TS which counts time how long time it takes for a DUT to clarify the test. If the DUT doesn't clarify the test at all, the sequence timeouts and indicates test time failed.
    Sometimes it happens that operator wants to break the test by clicking the break button on OI, do some things with DUT and continue testing. In my current implementation time which operator do things is counted, so normally when operator continues testing timeout condition is met and sequence indicates test time is failed.  
    I would like to improve the sequence by catching the operator break OI button click, save the time stamp, catch the operator resume OI button click and substract time it took for operator in order to get real time it took for DUT to clarify the test. 
    Any hint ?
    I attach start point for a sequence file.
    Best regards,
    Petri
    Attachments:
    Catch OI break.seq ‏10 KB

    Hi Petri,
    The method i suggested would allow you to implement this in the user interface, not the sequence itself; sorry for the confusion on that. Unfortunately there isn't a good way to do this in the sequence itself because the sequence will not be executing at a breakpoint, so no callback sequences will run until you resume the execution.  
    I think the best approach here would be to use the method I described previously to implement a counter variable in the UI which tracks how much time an execution has been suspended, then query this value at the end of your sequence using a custom UI message (as in this example; unfortunately no CVI equivalent example exists).  Refer to this article for information on creating a UI message callback in your user interface.
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • Project server 2013 csom save and publish

    Hi,
    In Project server 2013 PWA when you edit project custom fields and save the queue job execute the following jobs: 
    - "Project Update from PSI"
    - "Project Publish Summary"
    - "Reporting (Project Publish Summary)"
    In my code (CSOM)  i can only use : " QueueJob Job = projChechedOut.Publish(true);"
    which is creating all these jobs:
    Project Update from PSI
    Project Publish Notifications
    Project Publish
    Project Checkin
    Prepare Project Web App Permission Synchronization For Projects
    Reporting (Project Publish)
    Project Workflow Check-in
    Synchronize Project Web App Permissions to Project Web App
    Synchronize Project Web App Permissions to Project Site
    Reporting (Project Sync)
    Is there way to "simulate" the save from PWA instead of fully publishing the project using CSOM,  because it is a lighter solution since my code is supposed to only set custom field value (if i only update, not publish it is written to the
    Draft) and secondly performance (less jobs) is better ?
    Thx in advance !!

    Hi,
    as an update to my post:
    - In PSI the method is project.queuepublishsummary(guid jobid, guid projuid)
    http://msdn.microsoft.com/en-us/library/office/gg200290.aspx
    the description says: Publishes the stage summaries of the specified project, in a partial publish operation.
    I am wondering if the equivalent method exists in CSOM. There is this method: PublishedProject.UpdateVisibilityCustomFields() but it seems doing exactly the same thing as publishing a DraftProject.
    Any ideas ?
    Thx

  • Ireport in jdeveloper 11.1.1.2.0

    Hi,
    I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
    i want to use jasper report(ireport) for generating pdf report.Can any one give me sample link/example.how to set ireport and generate reports.
    thanks in advance.
    Edited by: user9010551 on May 17, 2010 11:04 PM

    jurkiri has helped with integrating JasperReports into your application, but I see that your question was about the report design tool, ireport. Unfortunately, while iReport can be installed in NetBeans as an extension, no equivalent extension exists for JDeveloper.
    (anyone want to get the source code for the NetBeans extension and modify it to work as a JDeveloper extension?)
    I've had some success calling iReport as an External Tool associated with files with the ".jrxml" filename extension. First go into the preferences window, select File Types, and Add ".jrxml" as an XML Document. After you've installed the iReport stand-alone version, select "Tools" from the JDeveloper menu bar and "External Tools..." from the drop down. Press the "New..." button. Tool Type is External Program. Program Executable: "C:\Program Files\JasperSoft\iReport-nb-3.1.4\bin\ireport.exe" though your executable may be slightly different if you use a different version. Arguments: ${file.path}. Run Directory: ${file.dir}
    You'll probably want this on the Navigator Context Menu - you decide where else you want to be able to start the tool. I've set it to be Enabled Always or I wouldn't be able to create new reports.
    The biggest problem you'll have is when you compile reports to ".jasper" files. I haven't quite figured that one out. I'm thinking that I may need to switch to use Ant for deployment, and write an Ant task for JasperReports.

  • UnitOfWork event and External Transaction Control

    Hi
    I'm running Toplink 9.0.3 with JBoss 3.2.2. Toplink is configured with an external transaction controler. My code is running inside a Session Bean, with CMT (Container Managed Transaction). My bean's transaction type is "Required" so the JTS transaction is already started when I call getActiveUnitOfWork().
    What I want to do is register a listener on the UOW's preCommit event. When I do, the listener is never called... Is it an issue with Toplink or is it me who is missing something?
    Thanks a lot
    Regards
    Eric

    Hi Eric,
    When configured correctly the registration of the listener should happen when you acquire the unit of work, and if logging is appropriately enabled you should see the #register log message on the console. You should not need to do anything in preCommit. Make sure that you have:
    - set the login to useExternalTransactionController()
    - set the controller instance on the session
    e.g. session.setExternalTransactionController(new JTSExternalTransactionController()
    - set the TransactionManager on the JTS listener class.
    e.g.
    TransactionManager jbossTM = ... // look up TM
    JTSSynchronizationListener.setTransactionManager(jbossTM)
    You will have to look up the JBoss TransactionManager in JNDI in order to set it on the listener class. I can't remember what name it is posted under in 3.22 but it is something generic (javax.transaction.TransactionManager, or something like that -- your app server doc should tell you).
    If you are using sessions.xml then the equivalent elements exist there as well to set the first two parts.
    -Mike

  • I am looking for an app for my iPhone and iPad, equivalent to Font Book on the iMac. I would like to be able to download a variation of fonts to use in Pages. Does this exist?

    I am looking for an app for my iPhone and iPad, equivalent to Font Book on the iMac. I would like to be able to download a variation of fonts to use in Pages. Does this exist?

    You can't add fonts to an iOS device.
    To let Apple know you want this feature, use
    http://www.apple .com/feedback

  • Does the Aironet 3600 can be used in France (5ghz) ? What is the PSU voltage ? Hwic module equivalent exist ?

    Hi,
    Does the power supply from aironet 3600 series, AIR-CAP3602I-A-K9 is compliant with french voltage ?
    Is it 110-220 input ? How to have a standart french plug or adapter if i bought this item in US ?
    Does this hardware can be used in France regarding authorized wireless frequency 2.4 and 5 GHz (802.11a/b/g/n/ac) ?
    Do you know if it exist any kind of HWIC module with same wireless performance that it can be used with G2 ISR Router (19xx/29xx/39xx) or previous generation ISR (18xx/2xx/38xx) ?
    Best Regards.

    Does the power supply from aironet 3600 series, AIR-CAP3602I-A-K9 is compliant with french
    If you enable this AP, you are likely breaking French law.  This AP is configured to be use with "-A" Regulatory Domain.
    France should be using "-E".
    Power supply issue ... 3600 will work with 15.4w PoE as long as you don't add modules.  If you do, you need 20.0w PoE.
    You have three choices:  PoE switch, Power Injector 3 or Power Brick.
    Edit:  Just re-read your post about "802.11a/b/g/n/ac" so this confirms you need 20.0 PoE.  So the same choices are still applicable:  PoE+ switch, Power Injector 3 or Power Brick.

  • Does Mac equivalent  to Adobe Audition/CoolEdit Pro exist?

    Audacity lacks the feature set though the price point makes it attractive.
    The versions of Bias Peak I've used are slow & cumbersome and don't have multitrack editing capabilities.
    Bias Deck has multitrack support but still requires you to have Bias Peak for hardcore editing of each track.
    Anything with a reasonable learning curve (a preferably reasonably priced) that's full-featured and as fast as CoolEdit Pro/Audition.
    As for what I'll be doing, I'd like to start producing my radio at home and would need to edit promotional spots, layer tracks, open/merge multiple audio files, apply filters, fade transitions to individual tracks, normalizing, exporting as AIFF, WAV, or mp3

    GarageBand should be your first stop. Haven't used it much myself, but I'm pretty sure it does a lot of what you described. Also comes with a library of royalty free sample loops that are good for making musical beds or sound effects. It's bundled as part of the iLife suite on your MacBook Pro.
    For a more advanced tools, look at Logic Express or Logic Pro. (Soundtrack Pro is also a very capable multi-track editor, but is only available with the Final Cut Studio bundle).

  • Create a table in SQL with datatype equivalent to LongBlob

    I have a mySQL or phpMyadmin table (nor sure) (with longblob fields) that I want to convert to SQL Server.
    Here is a link to a Rar with two files, the 'ORIGINAL CODE.sql' is the original code sample and the 'NEW_SQL_CODE.sql' is the code I am writing in SQL to create a database.
    Click to download the two files.
    I fail to make the insert in the 'NEW_SQL_CODE.sql', it says (translated from spanish) something like "The binary data will be truncated"
    INSERT INTO inmuebles_fotos (ci_inm, pos, foto, mini, comentario, inet, impr_cartel, impr_visita) VALUES
    (6, 0, 0xffd8ffe000104a46494600010100000100010...etc...
    I don’t know how if I have defined the wrong data type (image) equivalent to the MySQL LongBlob. All I want to do is to make that insert in SQL and save that image as jpg if possible. I don't know if it's not posible in SQL and can only
    be done in MySQL.
    Thanks for any help.

    The original table is not mine; I am just trying to save the images as .jpg in hard drive.
    Here is the original table I have that has 500Mb in pictures, in the sample there is only 1 picture:
    CREATE TABLE IF NOT EXISTS `inmuebles_fotos` (
    `ci_inm` int(10) unsigned DEFAULT NULL,
    `pos` smallint(6) DEFAULT NULL,
    `foto` longblob,
    `mini` longblob,
    `comentario` varchar(100) DEFAULT NULL,
    `inet` tinyint(3) unsigned DEFAULT '0',
    `impr_cartel` smallint(6) DEFAULT '0',
    `impr_visita` smallint(6) DEFAULT '0'
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    And here is the equivalent table in SQL that I am trying to create to import al registers so I can save the pictures from SQL Server that is what we use here.
    CREATE TABLE [dbo].[inmuebles_fotos2](
    [ci_inm] [int] NULL,
    [pos] [int] NULL,
    [foto] [image] NULL,
    [mini] [image] NULL,
    [comentario] [varchar](1) NULL,
    [inet] [int] NULL,
    [impr_cartel] [int] NULL,
    [impr_visita] [int] NULL
    Sorry for the trouble, I am trying everything I get my hands on until I get to save those images in “0x1234567890ABCDE…….” Format.
    I'll try anything you sugest me but I have only use SQL Server so that's why I'm trying this road first.
    Thanks for your help.

  • How Do I Remove Existing BootCamp Drivers in Windows 7?

    I've just replaced my 2009 Mac Mini Server with the 2012 equivalent. I've successfully utilised WinClone to clone my BootCamp partition from one Mini to the other. My copy of Windows 7 Professional 64bit opens as expected, and I've successfully re-entered my Windows Product Key.
    My only unresolved problem is in re-installing the BootCamp drivers. I have already downloaded the latest BootCamp drivers to my pen/thumb drive, and inserted it in my Mac Mini once Windows has started. On starting the BootCamp package, and attempting to install the drivers, I am alerted to 'a network problem' - which prevents me from installing the latest drivers.
    I suspect the problem resides in an existing BootCamp Manager v4.0.0.0 being present on my Windows install (from my previous Mac Mini).
    On locating the existing BootCamp Manager, Windows will not permit me to delete/remove the program and its associated files.
    I would therefore appreciate some assistance on either issue: installing new drivers, and/or, removing the existing BootCamp drivers.

    The problem has resolved itself...
    ...despite spending several pointless hours trying to delete the existing BootCamp drivers without success, I finally restarted Windows yet again - and this time I was easily able to delete the existing drivers.
    I then restarted my Mac, installed the latest drivers without issue and it all works just fine.
    Windows, eh?!

  • The name "Pi" does not exist in the namespace "clr-namespace:PressureVessels".

    Pi is the name of a class. 
    I made some major modification to the program in VS 2013, then after transferring the program to another PC with VS 2012 running, I am getting many errors that says:
    The name "ClassName" does not exist in the namespace "clr-namespace:PressureVessels". 

    Cleaning removes all the stuff out your bin.
    If all this stuff is in the one solution then that's equivalent to manually deleting it.
    If your app is composed from separate dll then I maybe some versioning issue.
    If not and you can't reproduce the issue on your dev machine...
    Tricky.
    You would have mentioned it if you were putting stuff in the GAC.
    Could be a sln or csproj issue.
    They occasionally corrupt.
    What else.
    How did you get your code onto the other pc?
    Is it contained within one folder with no external references beyond .net framework ones?
    If you did something a bit dodgy with your references a dll might be coming from somewhere which is on your pc and not on this other one.
    The only other advice I can think of is to step away for a bit and do something else.
    It's all too easy to get into a flat spin when something drastic happens and one has no idea wtf is going on.
    I used to be a points hound.
    But I'm alright nooooooooooooooooooooooooooooOOOOOWWWW !

  • URGENT: REP-56033: Job 0 does not exist

    Hi, I'm getting this error message when trying to display a report from forms 9i:
    "Cannot Get Output of Job ID 0 you requested on Mon Aug 01 04:22:08 EDT 2005.
    REP-56033: Job 0 does not exist"
    as far as I knew this error occurrs when the rdf file is not accessible or non-existing; unfortunately this is not the case.
    Moreover, the same application launches a report from another form and it works correctly, (the code is exactly the same).
    The main question is:
    is it possible that the problem resides in the server configuration rather than in the code (which actually is equivalent in both procedures)?
    Teh secoind one is:
    how can I get through this?
    Many thanks for helping
    Message was edited by:
    luka

    Nolicer, what is the value of:
    substr(v_rep,instr(v_rep,'_',-1)+1)You might wish to check this, using messages or the debugger.
    In other examples, I have seen the following code used instead:
    substr(v_rep, length(servername)+2, length(v_rep))Maybe this will help.
    Chris

Maybe you are looking for