PLSQL : Insert & character

I've got a trivial problem : i want to insert the & character in a column but sql*plus ask me to enter a value cause. Is there a way to insert this caracter ? I tried \&, _&, &&, /&, #& with no success.
Thanks

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by PERRET Jirtme ([email protected]):
I've got a trivial problem : i want to insert the & character in a column but sql*plus ask me to enter a value cause. Is there a way to insert this caracter ? I tried \&, _&, &&, /&, #& with no success.
Thanks<HR></BLOCKQUOTE>
That's ok, I found a tips : I insert 'abc &'&#0124; &#0124;' def' instead of 'abc & def' and it works.

Similar Messages

  • How to Insert Character using Prepared statement

    Hi All,
    Can anyone let me know how can I insert character using prepared statement.
    Thanks
    Sameer

    In the future JDBC related questions should be posted into the JDBC forum.
    Can you please provide some more information about what you are trying to do? It isn't clear to me. Are you trying to update a CHAR field?

  • Insert ' character in a varchar2 column

    How can i insert ' character in a column. For example I want to insert
    HARINDER ' KANDA
    in a name column in one of tables. I get the message "Quoted String not properly terminated"

    Hello Dear,
    Just use single quotes two times instead of one like:
    HARINDER''KANDA
    Remember that it's two single quotes one after another not a double quote.

  • PLSQL Insert and Special Circumstance

    I am using APEX 4.0.
    This one is strange. I have a system used to renew UCC filings, which must be renewed within six months of their expiration. I have a report (UCC Tracker Report) which lists all records falling within this date range. I click a sequence number (column link) for a record and go to a form detail page (UCC Detail) for the record identified by the sequence number. There are a number of data items on this page which will not change with the filing renewal; so I want to carry these data items into the new record. I do this with a button labeled "Renew UCC." It executes a PLSQL process which does two things: (1) it inserts a new record with the data preserved from the old record, and (2) updates the old record with an "H" in the "histrec" column (which makes this record history).
    Now, the second part works; the old record is always updated. The first part (the insert) does not work, except under a special circumstance. Back on the UCC Tracker Report page there is a button labeled "Enter New UCC Record." This button calls the same page (UCC Detail) that is called for the renewal, but, of course, since it is for new record, it will have null items. There is a button on it (Return to UCC Tracker Report) which will simply allow the user to return to the report page. If the user goes to this UCC Detail page, then returns to the UCC Tracker Report page, and then clicks a sequence number (column link) to bring up the record for renewal, clicking the Renew UCC button causes the PLSQL to insert the new record. Otherwise, it will not insert.
    Somewhere there must be a setting that needs to be changed for this form to operate as intended. Please help.
    **********************************Additional Wrinkle***************************
    After posting this question, I tried one more thing. I clicked the "Enter New UCC Record" button to go to the UCC Detail page and then edited the Action on the "Return to UCC Tracker Report" button to clear the cache on this page. After that the PLSQL insert would not work.
    Edited by: Doug on Apr 27, 2012 3:45 PM

    Hi,
    The Form page where you Create/Edit does not really come into play in the duplication of record process , unless you are trying to insert a row on that page (which would be bad idea) in the Page rendering side. Analyzing the UCC Detail page may offer clues, but it can also confuse.
    Chances are you are inserting a new record while navigating out of the UCC Tracker Report page in a OnSubmit process. And that would be the right thing to do.
    You also need to make a distinction between "Row not getting inserted in the table" and "Row not showing in the Edit (UCC Detai)". If the parameter passing from UCC Tracker Report to UCC Detail page is not correct you will not see the newly created row even though it is present in the table.
    The scenario you are describing is a routine one.
    If you put up this scenario on apex.oracle.com it will be possible to help fix it. Otherwise one can only guess !
    Regards,

  • Plsql insert statement.  urgent help needed

    Hi all oracle gurus
    I am trying to insert a value which is difference between two dates, for that reason i am doing (" rec_jag_promos.end_date -rec_jag_promos.start_date") inside my insert statement.
    but it is not working. my plsql code is running but not giving me any o/p.
    Here what i am trying to do is i want to insert DAYS value into my table which is between start date and end date.
    ........its not working . please guide me or correct me.
    Below is part of my querry ........
    Thanks
    -- migrate data
    FOR rec_jag_promos IN cur_jag_promos
    LOOP
    v_jag_count := v_jag_count + 1;
    BEGIN
    v_wots_hot_id := rec_jag_promos.promotion_id;
    -- this call will throw and exception 0 or many regions found
    v_region_id := get_region_id( rec_jag_promos.promotion_id, rec_jag_promos.region_display_type );
    INSERT INTO wotif_promo.WOTS_HOT
    ( id, country_code,
    start_date, end_date,inventory_source_id,hotel_id,
    rate_plan_code,region_id,blurb, modified_username,
    version,DAYS_ACTIVE )
    VALUES
    ( v_wots_hot_id, rec_jag_promos.country_code,
    rec_jag_promos.start_date, rec_jag_promos.end_date,v_inv_source_id,rec_jag_promos.hotel_id,
    rec_jag_promos.rate_plan_code, v_region_id, rec_jag_promos.blurb, rec_jag_promos.modified_username,
    1, rec_jag_promos.end_date-rec_jag_promos.start_date);
    v_wots_hot_inserts := v_wots_hot_inserts + 1;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
    DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
    v_wots_hot_errs := v_wots_hot_errs + 1;
    END;

    I am trying to insert a value which is difference between two dates, for that reason i am doing (" rec_jag_promos.end_date -rec_jag_promos.start_date") inside my insert statement.
    ........its not working . please guide me or correct me.
    Below is my file ........
    Thanks
    DECLARE
    -- cursors
    CURSOR cur_inventory_source IS
    select id
    from wotif_common.inventory_source
    where SHORT_DESCRIPTION = 'wotif';
    CURSOR cur_jag_promos IS
    select wh.id as wots_hot_id, p.id as promotion_id, cty.iso_countrycode as country_code,
    wh.blurb, dm.propid as hotel_id,
    p.startdts as START_DATE, p.expirydts as END_DATE,
    wa.username as modified_username, rt.roomtypecode as rate_plan_code,
    dm.dealdate as hot_date, dm.advertisedrate as price,
    wh.REGIONDISPLAYTYPE as region_display_type
    from wotif_web.PROM_wots_hot wh
    join wotif_web.PROMOTION p on wh.promotionid=p.id
    join wotif_web.country cty on p.countrycode=cty.countrycode
    join wotif_web.deal_master dm on wh.dealid=dm.dealid
    join wotif_web.prop_master_room_type rt on rt.proproomtypeid=dm.proproomtypeid
    join wotif_web.wotif_administrator wa on p.adminid = wa.administratorid
    where p.expirydts < trunc(sysdate) ---> TRUNC(sysdate)
    order by wh.id;
    -- variables
    v_debug BOOLEAN := FALSE;
    v_nls_length_semantics VARCHAR2(255);
    v_jag_count INTEGER := 0;
    v_inv_source_id WOTIF_COMMON.INVENTORY_SOURCE.ID%TYPE;
    v_wots_hot_id WOTIF_PROMO.WOTS_ON.ID%TYPE;
    v_wots_hot_day_id WOTIF_PROMO.WOTS_ON_DAY.ID%TYPE;
    v_wots_hot_inserts INTEGER := 0;
    v_wots_hot_day_inserts INTEGER := 0;
    v_wots_hot_errs INTEGER := 0;
    v_wots_hot_rate_plan_errs INTEGER := 0;
    v_wots_hot_day_errs INTEGER := 0;
    v_region_id wotif_promo.WOTS_HOT.region_id%TYPE;
    -- variables
    FUNCTION get_region_id
    p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
    p_region_type_enum IN wotif_web.PROM_WOTS_HOT.regiondisplaytype%TYPE
    ) RETURN NUMBER
    IS
    CURSOR cur_sub_region
    p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
    p_region_type IN wotif_web.PROPERTY_REGION.region_type%TYPE
    ) IS
    select reg.region_id as REGION_ID
    from wotif_web.PROM_WOTS_HOT wh
    join wotif_web.PROPERTY_REGION reg on wh.propid = reg.prop_id
    where wh.promotionid = p_promotion_id
    and reg.region_type = p_region_type;
    CURSOR cur_region
    p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
    p_region_type IN wotif_web.PROPERTY_REGION.region_type%TYPE
    ) IS
    select NVL(reg.parent_id, reg.id) as REGION_ID
    from wotif_web.PROM_WOTS_HOT wh
    join wotif_web.PROPERTY_REGION prop_reg on wh.propid = prop_reg.prop_id
    join wotif_web.region reg on prop_reg.region_id = reg.id
    where wh.promotionid = p_promotion_id
    and prop_reg.region_type = p_region_type;
    v_region_id wotif_web.PROPERTY_REGION.region_id%TYPE;
    BEGIN
    -- if region A
    IF p_region_type_enum = 0
    THEN
    OPEN cur_region( p_promotion_id, 'A' );
    FETCH cur_region INTO v_region_id;
    CLOSE cur_region;
    END IF;
    -- if region B
    IF p_region_type_enum = 2
    THEN
    OPEN cur_region( p_promotion_id, 'B' );
    FETCH cur_region INTO v_region_id;
    CLOSE cur_region;
    END IF;
    -- if sub_region A
    IF p_region_type_enum = 1
    THEN
    OPEN cur_sub_region( p_promotion_id, 'A' );
    FETCH cur_sub_region INTO v_region_id;
    CLOSE cur_sub_region;
    END IF;
    -- if sub_region B
    IF p_region_type_enum = 3
    THEN
    OPEN cur_sub_region( p_promotion_id, 'B' );
    FETCH cur_sub_region INTO v_region_id;
    CLOSE cur_sub_region;
    END IF;
    RETURN v_region_id;
    END get_region_id;
    -- main block
    BEGIN -- outer block
    -- initialise
    DBMS_OUTPUT.enable( 1000000 );
    -- validate
    EXECUTE IMMEDIATE 'alter session set NLS_LENGTH_SEMANTICS = ''CHAR''';
    SELECT VALUE
    INTO v_nls_length_semantics
    FROM NLS_SESSION_PARAMETERS
    WHERE PARAMETER = 'NLS_LENGTH_SEMANTICS';
    DBMS_OUTPUT.put_line('nls length semantics: ' || v_nls_length_semantics);
    IF v_nls_length_semantics 'CHAR' THEN
    RAISE_APPLICATION_ERROR( -20005, 'PROMO_MIGRATION ERROR: NLS_LENGTH_SEMANTICS set incorrectly');
    END IF;
    OPEN cur_inventory_source;
    FETCH cur_inventory_source INTO v_inv_source_id;
    CLOSE cur_inventory_source;
    DBMS_OUTPUT.put_line('v_inv_source_id: ' || v_inv_source_id);
    IF v_inv_source_id IS NULL THEN
    RAISE_APPLICATION_ERROR( -20005, 'PROMO_MIGRATION ERROR: v_inv_source_id not set');
    END IF;
    -- migrate data
    FOR rec_jag_promos IN cur_jag_promos
    LOOP
    v_jag_count := v_jag_count + 1;
    BEGIN
    v_wots_hot_id := rec_jag_promos.promotion_id;
    -- this call will throw and exception 0 or many regions found
    v_region_id := get_region_id( rec_jag_promos.promotion_id, rec_jag_promos.region_display_type );
    INSERT INTO wotif_promo.WOTS_HOT
    ( id, country_code,
    start_date, end_date,inventory_source_id,hotel_id,
    rate_plan_code,region_id,blurb, modified_username,
    version,DAYS_ACTIVE )
    VALUES
    ( v_wots_hot_id, rec_jag_promos.country_code,
    rec_jag_promos.start_date, rec_jag_promos.end_date,v_inv_source_id,rec_jag_promos.hotel_id,
    rec_jag_promos.rate_plan_code, v_region_id, rec_jag_promos.blurb, rec_jag_promos.modified_username,
    *1, rec_jag_promos.end_date -rec_jag_promos.start_date);*
    v_wots_hot_inserts := v_wots_hot_inserts + 1;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
    DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
    v_wots_hot_errs := v_wots_hot_errs + 1;
    END;
    -- insert single mandatory wots_hot_day
    BEGIN
    v_wots_hot_day_id := wotif_promo.wots_hot_day_seq.nextval;
    INSERT INTO wotif_promo.wots_hot_day
    ( id, wots_hot_id, hot_date, price )
    VALUES
    ( v_wots_hot_day_id, v_wots_hot_id, rec_jag_promos.hot_date, rec_jag_promos.price );
    v_wots_hot_day_inserts := v_wots_hot_day_inserts + 1;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT DAYS Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
    DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
    v_wots_hot_day_errs := v_wots_hot_day_errs + 1;
    END;
    END LOOP; -- wots_hot loop
    DBMS_OUTPUT.PUT_LINE( 'Jaguar wots hot count ' || NVL( v_jag_count,0) );
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT' );
    DBMS_OUTPUT.PUT_LINE( 'inserts ' || NVL( v_wots_hot_inserts,0) );
    DBMS_OUTPUT.PUT_LINE( 'errors ' || NVL( v_wots_hot_errs,0) );
    DBMS_OUTPUT.PUT_LINE( ' ' );
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT_DAY' );
    DBMS_OUTPUT.PUT_LINE( 'inserts ' || NVL( v_wots_hot_day_inserts,0) );
    DBMS_OUTPUT.PUT_LINE( 'errors ' || NVL( v_wots_hot_day_errs,0) );
    DBMS_OUTPUT.PUT_LINE( ' ' );
    END; --outer block
    commit;
    select count(*) from wotif_promo.wots_hot;
    select count(*) from wotif_promo.wots_hot_day;
    select * from wotif_promo.wots_hot_day;
    --commit;
    --rollback;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Insert Character in a String ?

    I am trying to insert the following character " / " to my string. It is printing out as 19990923. I want the output to print 1999/09/23
    I need some help with this problem. Thanks for any assistance.
    String[] s2 = eRecord.split(",");
    String stkSymbol1 = s2[0];
    String stkDate1 = s2[1];
    // int a = stkDate1.length() ;
    // buffer.insert(3," / ");
    // System.out.printf("\n%s\n\n" buffer.toString());
    System.out.println ("The Date for the last record is : "+ stkDate1); //

    The error message told you that you have not declare the variable buffer.
    If you really think you do, check if the declaration inside a conditional statement which is invalid.
    Post the code with code tags.

  • PlSQL insert

    Hi all oracle lovers
    I am trying to insert a value which is difference between two dates, for that reason i am doing (" rec_jag_promos.end_date -rec_jag_promos.start_date") inside my insert statement.
    but it is not working. my plsql code is running but not giving me any o/p.
    i figure out .. and found that its because of this particular insert (rec_jag_promos.end_date -rec_jag_promos.start_date).
    Here what i am trying to do is -----------------------------
    i want to insert DAYS value into my table which is between start date and end date.
    ........its not working . please guide me or correct me.
    Below is my file ........
    Thanks
    DECLARE
    -- cursors
    CURSOR cur_inventory_source IS
    select id
    from wotif_common.inventory_source
    where SHORT_DESCRIPTION = 'wotif';
    CURSOR cur_jag_promos IS
    select wh.id as wots_hot_id, p.id as promotion_id, cty.iso_countrycode as country_code,
    wh.blurb, dm.propid as hotel_id,
    p.startdts as START_DATE, p.expirydts as END_DATE,
    wa.username as modified_username, rt.roomtypecode as rate_plan_code,
    dm.dealdate as hot_date, dm.advertisedrate as price,
    wh.REGIONDISPLAYTYPE as region_display_type
    from wotif_web.PROM_wots_hot wh
    join wotif_web.PROMOTION p on wh.promotionid=p.id
    join wotif_web.country cty on p.countrycode=cty.countrycode
    join wotif_web.deal_master dm on wh.dealid=dm.dealid
    join wotif_web.prop_master_room_type rt on rt.proproomtypeid=dm.proproomtypeid
    join wotif_web.wotif_administrator wa on p.adminid = wa.administratorid
    where p.expirydts < trunc(sysdate) ---> TRUNC(sysdate)
    order by wh.id;
    -- variables
    v_debug BOOLEAN := FALSE;
    v_nls_length_semantics VARCHAR2(255);
    v_jag_count INTEGER := 0;
    v_inv_source_id WOTIF_COMMON.INVENTORY_SOURCE.ID%TYPE;
    v_wots_hot_id WOTIF_PROMO.WOTS_ON.ID%TYPE;
    v_wots_hot_day_id WOTIF_PROMO.WOTS_ON_DAY.ID%TYPE;
    v_wots_hot_inserts INTEGER := 0;
    v_wots_hot_day_inserts INTEGER := 0;
    v_wots_hot_errs INTEGER := 0;
    v_wots_hot_rate_plan_errs INTEGER := 0;
    v_wots_hot_day_errs INTEGER := 0;
    v_region_id wotif_promo.WOTS_HOT.region_id%TYPE;
    -- variables
    FUNCTION get_region_id
    p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
    p_region_type_enum IN wotif_web.PROM_WOTS_HOT.regiondisplaytype%TYPE
    ) RETURN NUMBER
    IS
    CURSOR cur_sub_region
    p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
    p_region_type IN wotif_web.PROPERTY_REGION.region_type%TYPE
    ) IS
    select reg.region_id as REGION_ID
    from wotif_web.PROM_WOTS_HOT wh
    join wotif_web.PROPERTY_REGION reg on wh.propid = reg.prop_id
    where wh.promotionid = p_promotion_id
    and reg.region_type = p_region_type;
    CURSOR cur_region
    p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
    p_region_type IN wotif_web.PROPERTY_REGION.region_type%TYPE
    ) IS
    select NVL(reg.parent_id, reg.id) as REGION_ID
    from wotif_web.PROM_WOTS_HOT wh
    join wotif_web.PROPERTY_REGION prop_reg on wh.propid = prop_reg.prop_id
    join wotif_web.region reg on prop_reg.region_id = reg.id
    where wh.promotionid = p_promotion_id
    and prop_reg.region_type = p_region_type;
    v_region_id wotif_web.PROPERTY_REGION.region_id%TYPE;
    BEGIN
    -- if region A
    IF p_region_type_enum = 0
    THEN
    OPEN cur_region( p_promotion_id, 'A' );
    FETCH cur_region INTO v_region_id;
    CLOSE cur_region;
    END IF;
    -- if region B
    IF p_region_type_enum = 2
    THEN
    OPEN cur_region( p_promotion_id, 'B' );
    FETCH cur_region INTO v_region_id;
    CLOSE cur_region;
    END IF;
    -- if sub_region A
    IF p_region_type_enum = 1
    THEN
    OPEN cur_sub_region( p_promotion_id, 'A' );
    FETCH cur_sub_region INTO v_region_id;
    CLOSE cur_sub_region;
    END IF;
    -- if sub_region B
    IF p_region_type_enum = 3
    THEN
    OPEN cur_sub_region( p_promotion_id, 'B' );
    FETCH cur_sub_region INTO v_region_id;
    CLOSE cur_sub_region;
    END IF;
    RETURN v_region_id;
    END get_region_id;
    -- main block
    BEGIN -- outer block
    -- initialise
    DBMS_OUTPUT.enable( 1000000 );
    -- validate
    EXECUTE IMMEDIATE 'alter session set NLS_LENGTH_SEMANTICS = ''CHAR''';
    SELECT VALUE
    INTO v_nls_length_semantics
    FROM NLS_SESSION_PARAMETERS
    WHERE PARAMETER = 'NLS_LENGTH_SEMANTICS';
    DBMS_OUTPUT.put_line('nls length semantics: ' || v_nls_length_semantics);
    IF v_nls_length_semantics <> 'CHAR' THEN
    RAISE_APPLICATION_ERROR( -20005, 'PROMO_MIGRATION ERROR: NLS_LENGTH_SEMANTICS set incorrectly');
    END IF;
    OPEN cur_inventory_source;
    FETCH cur_inventory_source INTO v_inv_source_id;
    CLOSE cur_inventory_source;
    DBMS_OUTPUT.put_line('v_inv_source_id: ' || v_inv_source_id);
    IF v_inv_source_id IS NULL THEN
    RAISE_APPLICATION_ERROR( -20005, 'PROMO_MIGRATION ERROR: v_inv_source_id not set');
    END IF;
    -- migrate data
    FOR rec_jag_promos IN cur_jag_promos
    LOOP
    v_jag_count := v_jag_count + 1;
    BEGIN
    v_wots_hot_id := rec_jag_promos.promotion_id;
    -- this call will throw and exception 0 or many regions found
    v_region_id := get_region_id( rec_jag_promos.promotion_id, rec_jag_promos.region_display_type );
    INSERT INTO wotif_promo.WOTS_HOT
    *( id, country_code,*
    start_date, end_date,inventory_source_id,hotel_id,
    rate_plan_code,region_id,blurb, modified_username,
    version,DAYS_ACTIVE )
    VALUES
    *( v_wots_hot_id, rec_jag_promos.country_code,*
    rec_jag_promos.start_date, rec_jag_promos.end_date,v_inv_source_id,rec_jag_promos.hotel_id,
    rec_jag_promos.rate_plan_code, v_region_id, rec_jag_promos.blurb, rec_jag_promos.modified_username,
    *1, rec_jag_promos.end_date -rec_jag_promos.start_date+);*
    v_wots_hot_inserts := v_wots_hot_inserts + 1;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
    DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
    v_wots_hot_errs := v_wots_hot_errs + 1;
    END;
    -- insert single mandatory wots_hot_day
    BEGIN
    v_wots_hot_day_id := wotif_promo.wots_hot_day_seq.nextval;
    INSERT INTO wotif_promo.wots_hot_day
    ( id, wots_hot_id, hot_date, price )
    VALUES
    ( v_wots_hot_day_id, v_wots_hot_id, rec_jag_promos.hot_date, rec_jag_promos.price );
    v_wots_hot_day_inserts := v_wots_hot_day_inserts + 1;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT DAYS Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
    DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
    v_wots_hot_day_errs := v_wots_hot_day_errs + 1;
    END;
    END LOOP; -- wots_hot loop
    DBMS_OUTPUT.PUT_LINE( 'Jaguar wots hot count ' || NVL( v_jag_count,0) );
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT' );
    DBMS_OUTPUT.PUT_LINE( 'inserts ' || NVL( v_wots_hot_inserts,0) );
    DBMS_OUTPUT.PUT_LINE( 'errors ' || NVL( v_wots_hot_errs,0) );
    DBMS_OUTPUT.PUT_LINE( ' ' );
    DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT_DAY' );
    DBMS_OUTPUT.PUT_LINE( 'inserts ' || NVL( v_wots_hot_day_inserts,0) );
    DBMS_OUTPUT.PUT_LINE( 'errors ' || NVL( v_wots_hot_day_errs,0) );
    DBMS_OUTPUT.PUT_LINE( ' ' );
    END; --outer block
    commit;
    select count(*) from wotif_promo.wots_hot;
    select count(*) from wotif_promo.wots_hot_day;
    select * from wotif_promo.wots_hot_day;
    --commit;
    --rollback;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    You are posting in the wrong forum. This is the Beehive forum, you might want to post your question in the plsql forum.

  • Strange Problem When Inserting " £ " character in a varchar2 column

    Hello
    This is a very strange issue i am facing when i use SQL+ on different clients.
    Client 1 ( SQL+) 9.2.0.4.0
    conn scott@ora9i
    SQL> insert into dummy values( '£');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from dummy;
    A
    ¿
    Client 2 ( SQL+) 9.2.0.4.0
    conn scott@ora9i
    SQL> insert into dummy values( '£');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from dummy;
    A
    £
    Has any one faced this issue before , I am sure it is something to do with Client Language / Character .
    Any help would be much appreciated.
    Thanks
    Harshad

    Cheers Mate , You are a Star ,
    Thanks Once again .
    Regards
    Harshad

  • Insert character with umlaut/accent

    How do you insert a character with an accent or umlaut into Appleworks 6? This may seem like a basic question, but I can't find it in any of the drop-down menus or the 'help' section. I particularly need German characters, such as 'ö' and 'ß' (both of which I copy/pasted there, but don't want to have to do that every time!). I am used to using OpenOffice or Microsoft Word.

    Welcome to Apple Discussions!
    Inserting umlaut/accented characters is fairly straightforward; it requires an [Opt]+[key] (=press [Opt] and hit [key] while holding [Opt]), which then either produces a character of its own or modifies the immediately following key.
    Some examples of such non-english characters:
    - [Opt]+[s] = ß, [Opt]+[d]=ð, [Shift][Opt][k] = , etc.
    Some examples of accenting:
    - [Opt]+[`] followed by [key] tries to put a down-stroke accent on [key]
    Ex.: [Opt]+[`][a] = à,
    - [Opt]+[n] [key] tries to put a tilde on the letter [key]
    Ex.: [Opt]-[n][o] = õ,
    - [Opt]+[e][key] triesd to put an up-stroke accent on [key]
    Ex.: [Opt]+[e][e] = é
    But, instead of me trying to give you a complete listing, see if you have a little "Stars-and-stripes" icon in the right portion of your menu bar. (If not, select "System Preferences..." from the "" menu item on the far left; in its window, click on the "International" icon, and then on the "Input Menu" tab; check the "Keyboard Viewer" if it isn't already checked; close the "System Preferences" window.)
    Select the "Show Keyboard Viewer" from the "Stars-and-Stripes" menu in the right portion of your menu bar, and you'll get a "live" guide to your keyboard. As you press modifier keys, the keys in the viewer change to their correspondingly modified (extended) function. So, pressing [Opt] highlights a couple of keys: these are extended modifier keys: [Opt] makes [e] into the highlighted [’] key, indicating that it attempts to put the [’]-like accent on the following letter.
    Only those combinations work that exist in the font you are using; For example [Opt]+[e][s] produces "´s" since there is no [’]-accented [s] in most fonts.
    This system has been with the Macintosh OS's since their inception---certainly as long as I remember it.
    If you have checked, "Hungarian" in the "International/Input Menu" system preference, and then selected that in the "Stars-and-Stripes" menu as your mode of entry, the flag changes into the Hungarian flag, and your keys will produce symbols according to the Hungarian layout, regardless of what the imprint on the actual keys says. The Keyboard Viewer, of course, tells you which key does what now. Since you ask about "ß" ([Opt]+[s]) and "ö" ([Opt]+[ u] [o]), which occur in German, you may want to switch to the German keyboard layout. Of course, some keys will no longer do what their imprint says, but the "Keyboard Viewer" can always remind you of their "German" function.
    Alas! The more recent, and far more capable method using UNICODE (accessible by checking the "U.S. Extended" = "Stars-and-Stripes" with a little "U" option in the "International/Input Menu" system preferences, and then selecting the "U.S. Extended" mode of input from the "Stars-and-Stripes" menu) is not supported by AppleWorks 6.2.9: it crashes if you type anything into any of the AppleWorks' modules. And, since Apple is now developing "iWork" and "iLife", AppleWorks will probably never accept UNICODE.
    Hope this helps, Tristan
    G4 PowerBook   Mac OS X (10.4.5)  

  • Golive CS2 inserting character  when template changes made

    I have a site created in Golive 6. Opened it in CS2. Now when I make changes on my template, the updated pages have the character  inserted randomly at ends of sentences or before © symbols. Updates I'm making involve changes to menu using Menu Machine 2.
    So now I have ot go back and manually remove all the  from the updated pages. More  are added every time I make an update. Any idea what's going on and how to avoid this?

    What was in your original file where the  is now showing up. For one of my clients that I have, they use some odd program to change the files on the server occassionaly and I always have to go in an fix the stray code that their app puts in the files. I have to go in and delete it all manually.
    You can do a find  and replace with a space on the page if it is just the  that is being added. It probably came from the conversion from one doctype or character set to the current one.

  • RichTextEditor - insert character at current cursor position?

    I've been looking everywhere but I can't find a way to insert
    a character in a RichTextEditrs current cursor position. I'm trying
    to create a soft keyboard for spanish special letters and symbols
    for an application.

    There is a property
    selection of the RichTextEditor control. This is a reference
    to a TextRange, which is the current selection or if nothing is
    selected, it's a TextRange of 0 length at the current position of
    the cursor.
    All you need to do to insert a character at the current
    position is:
    your rich text editor].selection.htmlText = "Insert text";

  • How can i insert character data in a table using the report trigger

    well here is my query
    do_sql ('insert into report_trigger_details values(po report,before parameter)');
    i need to to insert data from within the report using the before parameter form trigger.Error is as follows:
    error: rep-1425,cant parse the statement,missing comma
    This error got removed by removing the space in ''po report" and before parameter"
    Now the error that i get is :ora-00984:column not allowed here
    Also i need to keep the spaces between the values while inserting data
    Please help!!!
    Thanks
    Edited by: 924271 on Mar 29, 2012 7:02 AM
    Edited by: 924271 on Mar 29, 2012 7:07 AM
    Edited by: 924271 on Mar 29, 2012 7:08 AM

    I know this isnt a great way of using query but its part of the assignment ,so any help will be greatly appreciated.
    Here it is again......
    function BeforePForm return boolean is
    segment2 varchar2(10);
    begin
         srw.message(001,'I just got executed first');
    srw.do_sql('select segment1 into :segment2 from xxmssl_po_headers_all');
    srw.do_sql('insert into report_trigger_details values(seq2.nextval,:segment2,''po report'',''before parameter form'',''po number is'')');
    srw.do_sql('commit');
    return (TRUE);
    end;
    the that i was getting earlier was resolved by using two single quotes....Now the error is....
    Error: error putting value in column....
    column 'segment2' may not be referenced by parameter triggers..
    The insert ran fine until I changed the above function as follows:
    function BeforePForm return boolean is
    segment2 varchar2(10);
    type_code varchar2(10);
    org_no number(4);
    begin
         srw.message(001,'I just got executed first');
    srw.do_sql('select segment1,type_lookup_code,org_id into :segment2,:type_code,:org_no from xxmssl_po_headers_all');
    srw.do_sql('insert into report_trigger_details values(seq2.nextval,:segment2,''po report'',''before parameter form'',''po number is'':segment2 '',type_code is'':type_code '',org_no is'':org_no )');
    srw.do_sql('commit');
    return (TRUE);
    end;
    When i ran it ,it started giving the above mentioned error.I reverted the changes back and recompiled my report but still getting the same error....
    Thanks in advance
    Edited by: 924271 on Mar 29, 2012 11:59 PM
    Edited by: 924271 on Mar 30, 2012 12:11 AM

  • URGENT HELP PLSQL INSERT?

    I have view with 2 columns and a table with two cols.
    I need to INSERT into Table 1 from VIEW DISTICT CUST_JOB_ID WHERE SALARY is
    40,000 . in this CASE ABC(23000+21000) > 40,000 . INSERT SYSDATE. (This is a batch job running in the night). PQR is INSERTED and NOT HIJ into new table. VIEW1
    CUST_JOB_ID, SALARY
    ABC.. 23000
    ABC.. 21000
    DEF 39000
    XYZ.. 54000
    PQR .. 47000
    HIJ ... 15000
    TABLE1
    CUST_JOB_ID DATE
    ABC ............. 12/13/06
    XYZ .............. 5/4/ 05
    Thanks for advance help.
    Tigre.

    SQL> with employee as
      2   (select 'ABC' cust_job_id, 23000 salary from dual
      3    union all
      4    select 'ABC' cust_job_id, 21000 salart from dual
      5    union all
      6    select 'DEF' cust_job_id, 39000 salart from dual
      7    union all
      8    select 'XYZ' cust_job_id, 54000 salart from dual
      9    union all
    10    select 'PQR' cust_job_id, 47000 salart from dual
    11    union all
    12    select 'HIJ' cust_job_id, 15000 salart from dual)
    13  select e.cust_job_id,
    14         e.tot_sal
    15    from (select cust_job_id, sum(salary) tot_sal
    16            from employee
    17          group by cust_job_id) e
    18   where e.tot_sal > 40000
    19  ;
    CUST_JOB_ID    TOT_SAL
    ABC              44000
    PQR              47000
    XYZ              54000
    SQL> your code will look like something below:
      insert into table1
       (cust_job_id, date_column)
      select e.cust_job_id, sysdate
        from (select cust_job_id, sum(salary) tot_sal
                from employee
              group by cust_job_id) e
       where e.tot_sal > 40000

  • Insert character images and scenes

    This question was posted in response to the following article: http://help.adobe.com/en_US/presenter/using/WS5f497c91827355fd4ab4c44e137bf34ef17-8000.htm l

    When I click on the character nothing happens

  • Insert character Symbol

    I want to ask how to insert symbols triangle, circle or square on the Oracle database.,.
    I hope that the master can help me, thanks

    <i>I want to ask how to insert symbols triangle, circle or square on the Oracle database</i>
    Are those symbols image files?
    Check if below given SQL helps you...
    SELECT *
    FROM (SELECT CHR(LEVEL) CH, ASCII(CHR(LEVEL)) ASCII_CH
    FROM    DUAL
    CONNECT BY LEVEL <=1000);
    ☺          1
    ☻          2
    ♥          3
    ♦          4
    ♣          5
    ♠          6
               7
               8
              10
    ♂         11
    ♀         12
             13
    ♫         14
    ☼         15
    ►         16
    ◄         17
    ↕         18
    ‼         19
    ¶         20
    §         21
    ▬         22
    ↨         23
    ↑         24
    ↓         25
    →         26
    ←         27
    ∟         28
    ↔         29
    ▲         30
    ▼         31
              32
    !         33
    "         34
    #         35
    $         36
    %         37
    &         38
    '         39
    (         40
    )         41
    *         42
    +         43
    ,         44
    -         45
    .         46
    /         47
    0         48
    1         49
    2         50
    3         51
    4         52
    5         53
    6         54
    7         55
    8         56
    9         57
    :         58
    ;         59
    <         60
    =         61
    62?         63
    @         64
    A         65
    B         66
    C         67
    D         68
    E         69
    F         70
    G         71
    H         72
    I         73
    J         74
    K         75
    L         76
    M         77
    N         78
    O         79
    P         80
    Q         81
    R         82
    S         83
    T         84
    U         85
    V         86
    W         87
    X         88
    Y         89
    Z         90
    [         91
    \         92
    ]         93
    ^         94
    _         95
    `         96
    a         97
    b         98
    c         99
    d        100
    e        101
    f        102
    g        103
    h        104
    i        105
    j        106
    k        107
    l        108
    m        109
    n        110
    o        111
    p        112
    q        113
    r        114
    s        115
    t        116
    u        117
    v        118
    w        119
    x        120
    y        121
    z        122
    {        123
    |        124
    }        125
    ~        126
    ⌂        127
    Ç        128
    ü        129
    é        130
    â        131
    ä        132
    à        133
    å        134
    ç        135
    ê        136
    ë        137
    è        138
    ï        139
    î        140
    ì        141
    Ä        142
    Å        143
    É        144
    æ        145
    Æ        146
    ô        147
    ö        148
    ò        149
    û        150
    ù        151
    ÿ        152
    Ö        153
    Ü        154
    ¢        155
    £        156
    ¥        157
    ₧        158
    ƒ        159
    á        160
    í        161
    ó        162
    ú        163
    ñ        164
    Ñ        165
    ª        166
    º        167
    ¿        168
    ⌐        169
    ¬        170
    ½        171
    ¼        172
    ¡        173
    «        174
    »        175
    ░        176
    ▒        177
    ▓        178
    │        179
    ┤        180
    ╡        181
    ╢        182
    ╖        183
    ╕        184
    ╣        185
    ║        186
    ╗        187
    ╝        188
    ╜        189
    ╛        190
    ┐        191
    └        192
    ┴        193
    ┬        194
    ├        195
    ─        196
    ┼        197
    ╞        198
    ╟        199
    ╚        200
    ╔        201
    ╩        202
    ╦        203
    ╠        204
    ═        205
    ╬        206
    ╧        207
    ╨        208
    ╤        209
    ╥        210
    ╙        211
    ╘        212
    ╒        213
    ╓        214
    ╫        215
    ╪        216
    ┘        217
    ┌        218
    █        219
    ▄        220
    ▌        221
    ▐        222
    ▀        223
    α        224
    ß        225
    Γ        226
    π        227
    Σ        228
    σ        229
    1000 rows selected.
    {code}
    *009*
    Edited by: 009 on Apr 12, 2010 10:00 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Sun Directory Server 5.2 installation problem on AIX 5.2

    Hi, Am newbie to sun ds5.2 and I got stuck during installation for last 2 days. Could you pls guide to resolve this issue. Please error msg below Checking disk space... The following items for the product Directory Server will be installed: Product:

  • How do I transfer all my iPhoto library to an external drive without losing the organising

    My iMac's internal drive is almost full - mainly with 25,000 photos accumulated over the last 10 years. These are carefully sorted into Events, Smart Albums, etc., and given titles, ratings, etc. As my iMac is becoming rather 'clunky' with little spa

  • My MackBook Pro keeps heating up

    Hey guys! I have a mid 2012 macbook pro 15' quad core i7 4gb ram.(its a refurbished from apple. bought oct.2014) Im trying to record some game play video, using elgato game capture HD, and while im recording my laptop keeps heating up and I can hear

  • Don't want split screen on Internet

    WHen I open up tje Internet through safari, a split screen comes up. The screen on the left  says  "shared links" . The message in the screen says "no shared links".   The top of the screen  has 3 icons:  a book, glasses and @ sign icons. The bottom

  • Photoshop/CS6 Crashing VC++ Error

    Every once and a while photoshop will stop working and shut down and generate the following error in the event log: Faulting application name: Photoshop.exe, version: 13.0.1.34, time stamp: 0x5269b25c Faulting module name: MSVCR100.dll, version: 10.0