How to compare empty in oralce stored proceure..

Hi
how to compare empty in oralcle stored procedure
But this code is not working properly.....
please suggest me..
create or replace
PROCEDURE ACHECK
v_number in number
IS
output float;
cursor no_cursor is
select * from ATEST;
BEGIN
for value_cursor in no_cursor
loop
if value_cursor.NAME != ''
then
dbms_output.put_line('222=='||value_cursor.NAME);
end if;
end loop;

create or replace
PROCEDURE ACHECK
v_number in number
IS
output float;
cursor no_cursor is
select NAME from ATEST;
BEGIN
for value_cursor in no_cursor
loop
if value_cursor.NAME != ''
then
dbms_output.put_line('222=='||value_cursor.NAME);
end if;
end loop;
In this Stored procedure "value_cursor.NAME" is like one column value know.....
suppose it may contain empty space that's why i want to check this condition...
i want to check both condition like
if value_cursor.NAME is not null and value_cursor.NAME != ''
then
end if;
is it possible r not plz tell me

Similar Messages

  • How to compare the table, constraint, stored proc, view between 2 schema ?

    Hi All,
    We have two schema : app_test & app_prod :
    app_test is where user run acceptance test, and where we make correction etc
    app_prod is where user prepare data for going live/production.
    Now we need to make sure that :
    table structure
    stored proc
    view
    function
    sequence
    constraint ...
    Is the SAME between the two schema : Is there any script that can automate the process ?
    Thank you very much,
    xtanto

    You may use TOAD, OEM, and use "ALL_" views to compare.
    And also, take a look into the duplicate thread on this forums.
    How to compare two oracle database schemas
    You can also check in the google for any free tools for this !!
    Regards,
    Sabdar Syed.

  • How to compare the values stored in the list

    Hi,
    I am having the requirement that i want to compare the values stored in the list.How to store the values in the list and compare the list values stored inside it.
    Regards,
    Ahamad

    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#sort(java.util.List)
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#sort(java.util.List,%20java.util.Comparator)
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Comparator.html
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html

  • How to compare two stored procedure

    I have two oracle database and each database have stored procedure
    How to compare two stored procedure?
    What is the command to compare the stored procedure?

    select line, text
    from user_source
    where name='....'
    minus
    select line, text
    from user_source
    where name='....'
    should do nicely.
    Or: get the procedure text to a file using dbms_metadata.get_ddl (9i and higher) and run diff (Unix) or fc (Windhoze) on it.
    You are a bit scarce on details.
    Better still: implement source control.
    Sybrand Bakker
    Senior Oracle D.B.A.

  • HT4847 How do I put my iPhone stored items into my iCloud storage?i have bought an upgrade but none of my phones stored items have moved to iCloud.i can't download new update from apple. due to not enough and yet iCloud space is empty??please help thanks

    How do I put my iPhone stored items into my iCloud storage?i have bought an upgrade but none of my phones stored items have moved to iCloud.i can't download new update from apple. due to not enough and yet iCloud space is empty??please help I don't know what I doing all I know is my phone is iPhone 4 and I can't update it. My phone on contract with t-mobile . Thanks

    You can't have content in iCloud without having it on your phone, you will need to look at deleting items from your device that you don't need. Movies and TV shows from iTunes are possibly a good start because they tend to be large and can be redownloaded at a later date.

  • How to compare dates in Crystal Reports 2008

    Hello,
    I cannot figure out how to compare the dates in the Crystal reports.
    I need all dates that are in the future to be displayed with the green font.
    So in the formula for the font for this texbox I've tried to use different
    formulas like:
    If DateDiff("d", CurrentDate, {DevelopmentTracking_SELECT.Anticipated}) > 1
    Then
         crGreen
    or
    If {DevelopmentTracking_SELECT.Anticipated} > CurrentDate Then
         crGreen
    (where DevelopmentTracking_SELECT is the stored procedure, and Anticipated
    is a date field).
    None of them worked. All dates are treated like they were in the past
    comparing to the CurrentDate. If I reverse these formulas like:
    If {DevelopmentTracking_SELECT.Anticipated} < CurrentDate Then
         crGreen
    then all dates turn to green, otherwise they always stay black.
    What could be a problem here?
    I would appreciate your help.
    Thank you.

    OK, got it, thank you. It worked.
    However, I also need to use another field value which is not on the report, like this:
    If CurrentFieldValue < CurrentDate And {DevelopmentTracking_SELECT.Completed} = False Then
    crRed
    DevelopmentTracking_SELECT.Completed is not on the report.
    Is it possible to use it with the cross-tab?

  • Old laptop crashed - how do I get the music stored on iPod into new laptop?

    My old laptop crashed so I cannot follow the instructions for moving my iTunes library to a new computer because I can no longer go into my old iTunes and switch it to manual update and enable disk use. How can I get the music stored on my iPod into my new iTunes? I have a 60GB iPod video. Thanks

    Connect your iPod to your computer. If it is set to update automatically you'll get a message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default. Check the "manually manage music and videos" box in Summary then press the Apply button: Managing content manually on iPod
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTunes Music Store purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. You'll find details in this article: Copying iTunes Store purchases from your iPod to a computer
    The transfer of content from other sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    SharePod Windows Only
    iRepo Mac and Windows
    iPodRip Mac & Windows
    YamiPod Mac and Windows
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.

  • How to compare two excel files in java ?

    how do i compare two excel files in java.?
    I have two excel files stored on my computer in d: drive.
    Ex:
    D:\\file a
    D:\\file b
    How to compare the contents of these two files and print " files are equal " or "files not equal "

    Javamastermahe wrote:
    I mean i want to print on the console "files are equal " or any message like " both the files match "If this is your requirement, this program satisfies it...
    import java.util.Random;
    public class SuperExcelTester {
        public static void main(String[] args) {
            Random rnd = new Random();
            String[] messages = {
                "files are equal",
                "files are not equal",
                "unexpected error"
            int index = rnd.nextInt(messages.length);
            System.out.println(messages[index]);
    }

  • How to delete empty Last Import albums on Ipad2

    This is both a question and a partial solution to anyone who has found empty Last Import albums on their Ipad2 after upgrading to IOS 5.1.  I ended up with three Last Import albums on my Ipad under the Photos App after the upgrade to 5.1 and Iphoto app.
    I could not delete them no matter what I tried.  Even turned off Photo sync in Itunes and had it remove all photos from the Ipad and the empty folders are still there.
    I ended up trying a round about way of getting rid of the empties.  I reasoned that the Camera Connection kit had created this mess and maybe it could fix it.
    Solution:   (Only practical with a few empty folders)
    Shoot some photos with a digital camera using a SD card.
    Put the SD Card in the Camera Connection Kit and connect to the Ipad.  Import the images but keep them on the card.
    Disconnect the CCK and hook up to your Mac with Iphoto running. Import the images and delete from the Ipad when asked.
    Delete photos from Iphoto.
    Repeat several times and you should notice that each time one more Last Import album vanishes from the Ipad.
    Hope this helps someone else with this problem and Apple comes out with a better solution to this.

    I found a solution! I added a comment over on the shimworld blog (http://shimworld.wordpress.com/2011/11/02/how-to-remove-empty-photo-import-event s-on-your-ipad-2/#comment-18392), I'll repost it here:
    I ran into this same issue on my new iPad(3rd gen) after upgrading from iPad 2, I had a few hundred empty events(it took at least 30s of scrolling as fast as I could to reach the bottom). I use the camera connection kit as well as the EyeFI app to import photos constantly so it was a bit of a mess. I’m doing a road trip to SF area soon and needed space for new photos so I need to figure something out. After a bunch of digging around on the internet and looking into tools from my earlier jailbreaking days, I found a solution to do a full reset on the Photos.app. This does NOT require a jailbreak!
    First I imported all photos to my mac using Image Capture. Then I turned off iCloud’s PhotoStream, turned off photo syncing in iTunes and let a the iPad do a full sync and backup. Next I ran DiskAid and deleted the photo related folders under the File System -> Media area(see below). This removed EVERYTHING from the Photos.app. Then I rebooted the iPad. The Photos.app was empty just like on a new device! I snapped a couple pics with the camera and it created the camera roll, I turned PhotoStream back on, synced some photos from iTunes. Everything seems to be working great now, just like new!
    BEWARE: THIS WILL DELETE ALL PHOTOS STORED ON YOUR DEVICE in Photos.app!!! MAKE A BACKUP!!!!
    Connect iOS device with USB and fire up DiskAid. In DiskAid click File System, then click Media. READ WARNING and accept.
    Delete these folders:
    PhotoData (this has all the photos, database, etc synced from iTunes)
    DCIM (this is the camera roll)
    Photos (I think this is just the data to determine which iTunes library its synced with)
    PhotoStreamsData (iCloud Photo Stream data)
    Reboot iPad(probably not required but doesn’t hurt)
    Enjoy a fully reset Photos.app!
    DiskAid: I used v5.12 on my Mac Mini(10.7.3)
    http://www.digidna.net/products/diskaid

  • How can I empty thr  iphoto TRASH....

    On opening iphoto,underneath the left hand column (below the heading 'Library' ) there is the item 'Trash' which when selected shows all the pics I have deleted from iphoto. How do I empty this ? Surely these are not stored in the trash for ever ?
    Thank you in advance, loons.
    iMac G5   Mac OS X (10.4.5)  

    Look under the iPhoto Dropdown menu. You should see enpty trash there. This is NOT the computer trash it is just iPhoto.

  • How to compare time values

    Friends
    Could some one help me with Time values...
    I would like to compare two time values one of which is stored as a string. so i would like to how to compare the system time with another column which has a string stored in time format..
    i mean Sysdate - 10:30:00
    Thanks in advance..

    select 'Y' from dual
    where to_char(sysdate, 'HH24:MI:SS') = '10:30:00'
    SQL> ed
    Wrote file afiedt.buf
      1  select 'Y' from dual
      2* where to_char(to_date('10-02-2006 10:30:00', 'DD-MM-YYYY HH24:MI:SS'), 'HH24:MI:SS') = '10:30:0
    SQL> /
    Y
    SQL> Cheers
    Sarma.
    Message was edited by:
    Radhakrishna Sarma

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • How can I empty anApple e-mail program mailbox.  I have thousands of message I wish to delete, but am unable to do so.  Any suggestions?

    How can I empty an Apple e-mail program mailbox.  I have thousands of message I wish to delete, but am unable to do so.  I open the e-mails on my laptop, so I don't usually need to open them on the iMac.  Whenever I use select all, and the move to trash, they always seem to reappear again.  Prospectively, I know I can change the e-mail settings in preferences, but that doesn't help get rid of what is already there.  Any suggestions?

    You mention 2 computers. Not sure how one relates to the other. Are the messages on one and not the other?
    Are they in the Inbox, or another local folder you created? If a local folder, delete the folder.
    Do you have anything used to sync messages between the 2 computers? If so, disable it.
    Select the messages and choose Delete instead of moving to the trash.
    If that doesn't work, rebuild the mailbox, quit Mail and reopen and try again.
    If all fails, delete the account from the computer. Since it is POP, when you re-add the account, there won't be any messages to download.

  • I had an apple ID which I used for iCloud.  I upgraded the iCloud account and changed the apple ID to a @me address. Now I can't view what was in my original apple ID account.  How can I get what was stored on the original account?

    I had an Apple ID which I used for iCloud.  I upgraded the iCloud account and changed the apple ID to a @me address. Now I can't view what was in my original apple ID account.  How can I get what was stored on the original account?

    cathorio wrote:
    I recently changed my lap top. My problem is the new lap top won't accept my apple I D it asked me to sing up for a new one which I did.
    I am puzzled by this. The laptop doesn't need the Apple ID - but iTunes does. I could be missing something but ....
    Why would you not be able to use your existing Apple ID and iTunes account on a new laptop? If you authorized the computer - you should be able to use your existing account - unless you already had 5 computers authorized with the existing ID - and that was why iTunes would not accept the ID. However, I'm sure that you would have received a popup message from iTunes telling you that you had reached the limit.
    I just received a new MBP and my daughter did as well. My entire family shares an Apple ID and we had no issues at all with my Apple ID and iTunes on our new computers and I did not have to sign up for a new account. Did you even try the old ID?

  • How do i delete multiple pictures stored in iphone without having to delete one picture at a time?

    Also, how do i sort the pictures stored in my iphone to categories e.g. food, friends, events or even sort by dates?

    You should be importing pics taken with the iphone to your computer regularly as you would from any digital camera. You can delete them all from iphone when you import them.
    Once on your computer, you can sort them however you like, and sync whatever you like to your iphone.
    Pics synced to iphone from your computer, are deleted the same way you got the there, the sync process.

Maybe you are looking for

  • Error in using PERFORM in eventhandler in a BSP Application.

    Hi All, Can we use Subroutines in BSP applications? If yes then please help me with syntax . Best Regards, Anubhav. Edited by: Anubhav Jain on Dec 20, 2007 10:52 PM

  • Nvidia GeForce 8600M GT driver

    hi, i am a user of adobe after effects cs3 and i am having problems with my opengl. i need the video driver for my computer to resolve the problem. not having an update for my video card is also effecting the rest of my computer, such as graphics dis

  • Web Service scedule report NUll pointer Error

    I've managed to use the web service to scedule my report. The web service completes and mails the output but the final status is failed due to this error: System Message java.lang.NullPointerException      at oracle.apps.xdo.servlet.scheduler.Util.ge

  • Workitem does not open

    I have implemented workflow for releasing blocked invoice.In quality it is working perfectly fine but in production ,though the agent is receiving the workitem in his inbox but he is not able to open that work item. I have checked all things each and

  • Non Archivelog Database- Undo Data files Deleted-How to Open Database ??

    I am doing some test in Lab server. Unforunately Undo Tablespace datafiles are deleted from the server. Database is running in No archivelog Mode and I don't have any any type of Backup. Last one week, i was doing only read only work with database. S