To pull data from avarchar field into a date field in another table

Hi
I pulled some records into a table from a remote server by means of a database link and one of the field which is varchar(30) needs to be pulled into other database which has a date column.
so the varchar field needs to be converted into the date column so that the data can be loaded into that table.

Now, we are talking. See, all you had to give us was the error first. Anyway, I think your 'format' coming in is different from the date 'format' you are using to do the 'to_date' function.
Anyway, please show us what the incoming data looks like and we might be able to suggest what is the 'to_date' format you have to use (for eg: 'yyyy-mm-dd' or 'yyyy mm dd HH:mi:ssss').

Similar Messages

  • How to pull content from div on one page to div on another page

    Hi all,
    I would like to pull content from the divs on page to divs on another page (so that I only have to update information on one page).
    Could anybody give me a tip on where to read about this/how to do this? I am not expecting the final answer, just a clue on where to start looking for how to get startet.
    Thanks in advance for any answers.
    Best regards,
    Ivan
    www.colombiareiser.no

    Try reading on DW Spry html data sets. The Spry HTML data set allows users to use standard HTML tables and other structured markup as a data source.
    http://labs.adobe.com/technologies/spry/articles/html_dataset/index.html
    http://labs.adobe.com/technologies/spry/docs.html
    Regards,
    Vinay

  • Click on f4  of  standard field it should show fields of another table

    Hi all,
            it's Urgent, Plz,  tell me in edit mode of ooalv when i  click on f4  of particular standard field it should have feature to show fields of another table which are corresponding to this particular field.
                   thanks in Advance .
          good answer will be Rewarded.

    have a look at demo report BCALV_TEST_GRID_F4_HELP.
    I couldn't explain it any better than this.

  • Possible to have E-Mail button pull address from text field?

    I've added a button that will submit the form as a PDF to an e-mail address. Another field will pull the customer e-mail address from our system. Is there a way to merge the two to ensure the E-mail button set up will use the e-mail address pulled in?

    It's a generic button, with the control type set to Submit.
    Submit As is set to PDF, unfortunately submitting this as XML wouldnt be a viable option for the nature of how this will be used.
    Submit to URL is -- mailto:CUSTOMER_EMAIL?subject=blahblahblah
    CUSTOMER_EMAIL is the variable pulling data into the form, would like for this to populate as well into the mailto address.
    I do apologize for the ambiguity on the first post! I can certainly attatch the form if need be and I greatly appreciate the help.

  • Moving data from custom fields to ekko table

    Hi Experts,
    I added new custom tab into me21n,me22n,me23n header thro me_gui_po_cust and me_process_po_cust.
    If i enter values in my custom fields, transport_from_model this method is not triggering.i have written below code in this method.
    METHOD if_ex_me_gui_po_cust~transport_from_model.
      DATA:     l_header  TYPE REF TO if_purchase_order_mm,
                ls_mepoheader  TYPE mepoheader,
                ls_customer TYPE ci_ekkodb.
      CASE im_name.
        WHEN subscreen.
          mmpur_dynamic_cast l_header im_model.
          CHECK NOT l_header IS INITIAL.
          ls_mepoheader = l_header->get_data( ).
          CALL FUNCTION 'ZMM_GET_DATA'
            EXPORTING
              im_ebeln       = ls_mepoheader-ebeln
    *            im_ebelp       = ls_mepoheader-ebelp
           IMPORTING
             ex_data        = ls_customer .
          MOVE-CORRESPONDING ls_mepoheader TO dynp_data_pbo.
          MOVE ls_customer-ztender TO dynp_data_pbo-ztender.
          MOVE ls_customer-zemdapplicable TO dynp_data_pbo-zemdapplicable.
          MOVE ls_customer-zpbgapplicable TO dynp_data_pbo-zpbgapplicable.
          MOVE ls_customer-zemdamount TO dynp_data_pbo-zemdamount.
          MOVE ls_customer-zemdvalidity TO dynp_data_pbo-zemdvalidity.
        WHEN OTHERS.
      ENDCASE.
    ENDMETHOD.
    i cant move my values entered in custom fields to ekko table.
    please help if u know..
    regards,
    Kavitha
    Edited by: Matt on Mar 23, 2011 10:55 AM added  tags

    Hi,
    check this out.. !!
    Import data from Excel to Oracle Database and
    Added link From Ask Tom.. your requirement you would be satisfied.. I supppose.. !!
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:908428873069
    - Pavan Kumar N

  • How to Read data from a table which is defined as a field in another table

    Hi
    Iam working with FM: 'CUCB_GET_CONFIGURATION'
    <b>  Import parameter configuration as a table.</b>
      <u>but configuration has another table as a field.</u>
    i want to read the inner table fields.
    how can i read the table which is defined as field in configuration table.
    Please try to give me a solution.
    can i have the declartions too....
    Thanks,
    sri

    Hi jonnakuti,
    1. simple
    2.
    DATA : CONFG      TYPE IBCO2_INSTANCE_TAB2.
    <b>DATA : WA TYPE LINE OF IBCO2_INSTANCE_TAB2.</b>
    3. just copy paste
    4.
    report abc.
    TYPE-POOLS : IBCO2.
    DATA : INSTANCE     TYPE     CUIB_CUOBJ.
    DATA : CONFG      TYPE IBCO2_INSTANCE_TAB2.
    DATA : WA TYPE LINE OF IBCO2_INSTANCE_TAB2.
    CALL FUNCTION 'CUCB_GET_CONFIGURATION'
      EXPORTING
        INSTANCE                           = INSTANCE
      IS_BUSINESS_OBJECT                 =
      IV_MOMENT                          =
      IV_WITH_DB_INSTANCE                =
    IMPORTING
      IBASE                              =
       CONFIGURATION                      = CONFG
      EO_CBASE_REF                       =
    EXCEPTIONS
       INVALID_INPUT                      = 1
       INVALID_INSTANCE                   = 2
       INSTANCE_IS_A_CLASSIFICATION       = 3
       OTHERS                             = 4
    read like this
    LOOP AT CONFG INTO WA.
    ENDLOOP.
    regards,
    amit m.

  • Trouble pulling data out of a table

    Ok having problem pulling infromation from a table
    We are trying to add the amount of discount to our line items on our quote (which is a smartform)
    I tried using both sets of code but I can't seem to pull any data from table KONV
    first i tried this
    SELECT SINGLE KNUMV FROM VBAK INTO L_KNUMV WHERE VBELN = is_vbdka-vbeln.
    SELECT * FROM KONV INTO TABLE IT_KONV WHERE KNUMV  =  L_KNUMV AND KPOSN  =  wa_vbdpa-posnr.
    LOOP AT IT_KONV INTO WA_KONV WHERE KWERT NE 0.
    IF WA_KONV-KSCHL = 'ZK04'.
      m_disc =  ( WA_KONV-KWERT * -1 ).
    ENDIF.
    IF WA_KONV-KSCHL = 'ZK07'.
      c_disc = WA_KONV-KWERT.
    ENDIF.
    ENDLOOP.
    item_discount = m_disc + c_disc.
    I get a value for L_KNUMV and KPOSN but it never enters the loop so I thought I'd try to pull it directly with
    SELECT SINGLE KNUMV FROM VBAK INTO L_KNUMV WHERE VBELN = is_vbdka-vbeln.
    select single * from konv into wa_mkonv where knumv = l_knumv and kposn = wa_vbdpa-posnr and kschl = 'zk04'.
    m_disc =  ( wa_mkonv-kwert * -1 ).
    select single * from konv into wa_ckonv where knumv = l_knumv and kposn = wa_vbdpa-posnr and kschl = 'zk07'.
    c_disc = ( wa_ckonv-kwert * -1 ).
    item_disc = m_disc + c_disc.
    But still didn't get any data from KONV
    Is my code wrong or am I trying to pull data from the wrong area.  If i go into table se16  and I place the values in for KNUMV and the KPOSN and can see the information for KONV-KWERT but my smartform isn't pulling it in.

    Israel Edmiston wrote:
    Ok having problem pulling infromation from a table
    >
    > We are trying to add the amount of discount to our line items on our quote (which is a smartform)
    >
    > I tried using both sets of code but I can't seem to pull any data from table KONV
    >
    > first i tried this
    >
    > SELECT SINGLE KNUMV FROM VBAK INTO L_KNUMV WHERE VBELN = is_vbdka-vbeln.
    >
    > SELECT * FROM KONV INTO TABLE IT_KONV WHERE KNUMV  =  L_KNUMV AND KPOSN  =  wa_vbdpa-posnr.
    >
    In Debug Mode check if IT_KONV tab is filled.....
    > LOOP AT IT_KONV INTO WA_KONV WHERE KWERT NE 0.
    >
    > IF WA_KONV-KSCHL = 'ZK04'.
    >   m_disc =  ( WA_KONV-KWERT * -1 ).
    > ENDIF.
    >
    > IF WA_KONV-KSCHL = 'ZK07'.
    >   c_disc = WA_KONV-KWERT.
    > ENDIF.
    >
    > ENDLOOP.
    >
    > item_discount = m_disc + c_disc.
    >
    > I get a value for L_KNUMV and KPOSN but it never enters the loop so I thought I'd try to pull it directly with
    >
    > SELECT SINGLE KNUMV FROM VBAK INTO L_KNUMV WHERE VBELN = is_vbdka-vbeln.
    >
    > select single * from konv into wa_mkonv where knumv = l_knumv and kposn = wa_vbdpa-posnr and kschl = 'zk04'.->
    'ZK04'
    >
    > m_disc =  ( wa_mkonv-kwert * -1 ).
    >
    > select single * from konv into wa_ckonv where knumv = l_knumv and kposn = wa_vbdpa-posnr and kschl = 'zk07' ->
    *'ZK07'*
    >
    > c_disc = ( wa_ckonv-kwert * -1 ).
    >
    > item_disc = m_disc + c_disc.
    >
    >
    > But still didn't get any data from KONV
    >
    > Is my code wrong or am I trying to pull data from the wrong area.  If i go into table se16  and I place the values in for KNUMV and the KPOSN and can see the information for KONV-KWERT but my smartform isn't pulling it in.

  • Select only first 10 chars from the field in a table while writlng a selec

    hi experts,
    In a table  one field contains a value of above 10 characters (ex 10 or 15 or 20 characters).But i want to select
    only first 10 characters from this field while writing a select statement.
    This logic should be included in select statement.
    please gime immediate solution.
    My question is understood.

    Hi,
    Try this one
    data : begin of itab occurs 0,
            maktx(10) type c,
    end of itab.
    " though the length of MAKTX is 40 you only get 10 chars
    select maktx from makt into table itab up to 10 rows.
    if sy-subrc is initial.
    endif.
    " Suppose the field name of table you want to select is MAKTX then declare
    " Your internal table in the above manner, it will automatically fit into it and will get 10 Chars only
    " Instead of burding the select query / DB interface use the above.
    Cheerz
    Ram

  • Adobe Bridge CC : metadata copy from one field to another for multiple files

    So I am using Bridge CC for managing audio files and have many many MP3's that I need to copy or move one field of metadata to another.
    ie:  copy "Audio Artist" field to "IPTC Core Creator" Field
         move "IPTC Core Description" to "Video Log Comment" field
    Is there a script I can add that will let me select multiple files, and have it copy or move all the info from one of these fields to another?
    Thanks
    Scott
    [email protected]

    Scott, I did have a go at this but I can't get the right path to the logComment in the XMP…
    Coping artist to creator works fine… If I find the solution I will post back…

  • Remove un recognized characters from a field of a table.

    Is there any way to remove un recognized characters from content of field in a table. Please help.
    Thx

    If you know the characters that you want removed, you may have success using the TRANSLATE function.
    The key here as stated in the SQL Language Reference is
    the extra characters at the end of from_string have no corresponding characters in to_string. If these extra characters appear in char, then they are removed from the return value.
    The other useful function to remove unwanted junk is REGEXP_REPLACE - but you must be on 10g or later for regular expression support. Translate is supported at least as far back as 8i, perhaps further.

  • Is it possible to write a result of query to a CLOB field in another table

    Hi all,
    I have a table with 50 columns which will ideally have around 250,000 rows. I want to select all the rows from this table and insert the result in to another
    table's CLOB or BLOB column. ( I think CLOB is preferred for strings !!)
    f.i
    Table1 : SELECT ID, COL1||','||COL2||','||COL3||','||COL4||','||COL5 FROM TF_TEMPREP
    ORDER BY COL1
    will have the output
    A001, 1,ABN LAYOUT,01-APR-11,30-APR-11,REMARK1
    A001, 2,CTS ,01-APR-11,10-APR-11,REMARK2
    A001, 3,BTS,01-APR-11,20-APR-11,REMARK3
    A001, 4,CWWS,01-JAN-11,31-JAN-11,REMARK4
    A001, 5,ZYNC,01-MAR-11,31-MAR-11,REMARK5
    I would like to store these rows into another table (TF_TEMPREP_OUTPUT) CLOB/BLOB column ,
    so the table TF_TEMPREP_OUTPUT will have one row with all the rows from TF_TEMPREP in the CLOB/BLOB column.
    TF_TEMPREP_OUTPUT will have column OUTPUTID (VARCHAR2) , OUTPUTDATA (CLOB DATATYPE)
    Will this be possible !!.
    Thanks in advance
    Regards
    Murali

    Hi all
    Thanks for your reply,
    The reason we would like to store the data in a CLOB file is that,
    Currently we are fetching the data from the table TF_TEMPREP and the recordset is passed into a function and writing the ouput to a CSV file in the local drive using the VB (front end application). once the process is completed, the temporary table will be deleted. this is used only for printing purpose.
    we are using the VB function
    Public Function RecordsetToCSV(rsData As ADODB.Recordset, pFileSeparator As String, Optional ShowColumnNames As Boolean = True, Optional NULLStr As String = "") As String
    Dim k As Long
    Dim RetStr As String
    On Error GoTo Errh
    If ShowColumnNames Then
    For k = 0 To rsData.Fields.Count - 1
    RetStr = RetStr & pFileSeparator & """" & rsData.Fields(k).Name & """"
    Next k
    RetStr = Mid(RetStr, 2) & vbNewLine
    End If
    rsData.MoveFirst
    RetStr = RetStr & """" & rsData.GetString(adClipString, -1, """" & pFileSeparator & """", """" & vbNewLine & """", NULLStr)
    RetStr = Left(RetStr, Len(RetStr) - 3)
    RecordsetToCSV = RetStr
    Exit Function
    Errh:
    RecordsetToCSV = ""
    Exit Function
    End Function
    But in this operation, as the number of records is more the system often throws out with the message "Not enough storage is available to complete this operation.". The Local HD is having around 50GB of free space. when we have less number of records (say around 30-40K), the above process works perfectly.
    Storing the File in the database server will be an issue, as the database server will be in a different location and it will not be possible/advisable to access the
    local directory thru mapped directory in the database server.
    our plan was if the data is available in a clob field, then we could try to read the clob and write to a file in the local directory thru our VB application itself. Not sure, will this also gives a same error as it was giving when reading from the table?.
    Hope I have clarified what we are aiming at.
    Regards
    Murali

  • Update data according to another table

    <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">Hi,</font></p>
    <p style="margin-top: 0; margin-bottom: 0"> </p>
    <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">I would like to update data in a table according to another table.</font></p>
    <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">Concretely, the data are to be updated if they are different in the other table.</font></p>
    <p style="margin-top: 0; margin-bottom: 0"> </p>
    <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">Here is a part of my procedure :</font></p>
    <font SIZE="2">
    <p style="margin-top: 0; margin-bottom: 0"></font><font face="Courier New"><font SIZE="2" COLOR="#0000f0">UPDATE</font><font SIZE="2"> </font></font><font SIZE="2" COLOR="#808000"><font face="Courier New">GLMASTER_SAVE</font></p></font>
    <font SIZE="2">
    <p style="margin-top: 0; margin-bottom: 0"></font><font face="Courier New"><font SIZE="2" COLOR="#0000f0">SET</font><font SIZE="2">    </font><font SIZE="2" COLOR="#808000">GLMASTER_SAVE</font><font SIZE="2" COLOR="#0000f0">.</font><font SIZE="2">ACTIVE_STATUS</font><font SIZE="2" COLOR="#0000f0"> =</font><font SIZE="2"> GLMASTER</font><font SIZE="2" COLOR="#0000f0">.</font></font><font SIZE="2"><font face="Courier New">ACTIVE_STATUS</font></p>
    <p style="margin-top: 0; margin-bottom: 0"></font><font face="Courier New"><font SIZE="2" COLOR="#0000f0">WHERE</font><font SIZE="2"> </font><font SIZE="2" COLOR="#808000">     GLMASTER_SAVE</font><font SIZE="2" COLOR="#0000f0">.</font><font SIZE="2">COMPANY</font><font SIZE="2" COLOR="#0000f0"> =</font><font SIZE="2"> GLMASTER</font><font SIZE="2" COLOR="#0000f0">.</font></font><font SIZE="2"><font face="Courier New">COMPANY</font></p>
    <p style="margin-top: 0; margin-bottom: 0"></font><font face="Courier New"><font SIZE="2" COLOR="#0000f0">       AND </font><font SIZE="2" COLOR="#808000">GLMASTER_SAVE</font><font SIZE="2" COLOR="#0000f0">.</font><font SIZE="2">ACCT_UNIT </font><font SIZE="2" COLOR="#0000f0">=</font><font SIZE="2"> GLMASTER</font><font SIZE="2" COLOR="#0000f0">.</font></font><font SIZE="2"><font face="Courier New">ACCT_UNIT</font></p>
    <p style="margin-top: 0; margin-bottom: 0"><font SIZE="2" COLOR="#0000f0" face="Courier New">     </font></font><font face="Courier New"><font SIZE="2" COLOR="#0000f0">  AND </font><font SIZE="2" COLOR="#808000">GLMASTER_SAVE</font><font SIZE="2" COLOR="#0000f0">.</font><font SIZE="2">ACCOUNT</font><font SIZE="2" COLOR="#0000f0"> =</font><font SIZE="2"> GLMASTER</font><font SIZE="2" COLOR="#0000f0">.</font></font><font SIZE="2"><font face="Courier New">ACCOUNT</font></p>
    <p style="margin-top: 0; margin-bottom: 0"><font SIZE="2" COLOR="#0000f0" face="Courier New">     </font></font><font face="Courier New"><font SIZE="2" COLOR="#0000f0">  AND</font><font SIZE="2" COLOR="#808000"> GLMASTER_SAVE</font><font SIZE="2" COLOR="#0000f0">.</font><font SIZE="2">SUB_ACCOUNT</font><font SIZE="2" COLOR="#0000f0"> =</font><font SIZE="2"> GLMASTER</font><font SIZE="2" COLOR="#0000f0">.</font></font><font SIZE="2"><font face="Courier New">SUB_ACCOUNT</font></p>
    <p style="margin-top: 0; margin-bottom: 0"><font SIZE="2" COLOR="#0000f0" face="Courier New">     </font></font><font face="Courier New"><font SIZE="2" COLOR="#0000f0">  AND</font><font SIZE="2" COLOR="#808000"> GLMASTER_SAVE</font><font SIZE="2" COLOR="#0000f0">.</font><font SIZE="2">ACTIVE_STATUS</font><font SIZE="2" COLOR="#0000f0"> <></font><font SIZE="2"> GLMASTER</font><font SIZE="2" COLOR="#0000f0">.</font><font SIZE="2">ACTIVE_STATUS</font></font><font SIZE="2" COLOR="#0000f0"><font face="Courier New">;</font></p></font>
    <p style="margin-top: 0; margin-bottom: 0"> </p>
    <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">The data (field </font><font SIZE="2"><font face="Courier New">ACTIVE_STATUS</font><font face="Arial">)</font></font><font face="Arial" size="2"> are to be updated in the table </font><font SIZE="2" COLOR="#808000" face="Courier New">GLMASTER_SAVE</font><font SIZE="2" face="Arial"> if the same field is different in the table </font><font SIZE="2" face="Courier New">GLMASTER</font><font SIZE="2" face="Arial">.</font></p>
    <p style="margin-top: 0; margin-bottom: 0"> </p>
    <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">Thank you for your help.</font></p>
    <p style="margin-top: 0; margin-bottom: 0"> </p>
    <p style="margin-top: 0; margin-bottom: 0"><i><b>
    <font face="Arial" size="2" color="#008080">Patrick</font></b></i></p>

    UPDATE GLMASTER_SAVE
    SET    GLMASTER_SAVE.ACTIVE_STATUS =
    (SELECT GLMASTER.ACTIVE_STATUS
    FROM GLMASTER
    WHERE      GLMASTER_SAVE.COMPANY = GLMASTER.COMPANY
           AND GLMASTER_SAVE.ACCT_UNIT = GLMASTER.ACCT_UNIT
           AND GLMASTER_SAVE.ACCOUNT = GLMASTER.ACCOUNT
           AND GLMASTER_SAVE.SUB_ACCOUNT = GLMASTER.SUB_ACCOUNT
           AND GLMASTER_SAVE.ACTIVE_STATUS <> GLMASTER.ACTIVE_STATUS)
    WHERE EXISTS
    (select 1 from glmaster
    WHERE      GLMASTER_SAVE.COMPANY = GLMASTER.COMPANY
           AND GLMASTER_SAVE.ACCT_UNIT = GLMASTER.ACCT_UNIT
           AND GLMASTER_SAVE.ACCOUNT = GLMASTER.ACCOUNT
           AND GLMASTER_SAVE.SUB_ACCOUNT = GLMASTER.SUB_ACCOUNT
           AND GLMASTER_SAVE.ACTIVE_STATUS <> GLMASTER.ACTIVE_STATUS);
    Regards
    Dmytro Dekhtyaryuk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Sort a Table with data extracted form Another table

    I have a MAster Table that consist of many columns of data. I have extracted data (rows) from the table to another table for a list. I used vlookup to get the extracted data. In my new table everything is list ed out perfectly. I want to sort the table using one of the columns. I tried the reorganize button and just sorting on that one column and it won't sort. I know I'm doing something wrong whether the way I am extracting the data,or something else. Do I use lookup and large or small function to list and sort it from the main table? I stumped. Anybody have sugestions?

    Hi tj,
    "The Master file is the second image. I have extracted the data for the second table(second image). "
    Hmmm...
    Both tables are the second image. Good trick!
    Good thing you included the description.
    The (modified) Master table is Table 1 on Sheet 15. From this, you are extracting the participants for "R & B Winter Sk8 Jam. You want the extracted rows to be displayed on the Contestant Sheet table sorted by Division.
    I see two possible lines of attack here:
    The simplest might be to presort the Master table on Division, then within that sort, on last name, then on first name. With the Master table in that order, extracting the data using the index you are currently using should pull the rows in the desired order.
    Construct an index of numerical values constructed from the sum of:
    -- a very large number corresponding to the event, pulled from a Lookup table.
    -- a large numbers corresponding to the division, pulled from a second Lookup table.
    -- a small number corresponding to he count (from the top of the main tale to the current row) of Sk8ers entered in each event. (This, I think, would be the same as the count in your Index column.)
    Retrieval would be done using RANK to determine the smallest and largest index values to retrieve, and SMALL to collect data from the rows with index values within that range.
    No. 2 is at the concept stage, and is open to anyone wanting to give it a go.
    Regards,
    Barry

  • Count field using fields at another tables

    Hi. I have invoice and deliveries:
    Create table Invoices (
    InvoiceID number primary key,
    OrganizationName varchar2(30),
    InvoiceDate date,
    TotalPrice money
    Create table Deliveries (
    InvoiceID number,
    ProductName varchar2(30),
    ProductPrice money,
    Amount number,
    Second table has information about products with in invoice.
    I would like not to count all Products:
    Select InvoiseID ,COUNT(ProductPrice*Amount) as "Total invoice Price"
    From somewhere
    Where something has the same InvoiceID
    Group by invoiceID
    I want it to count automaticlly and put it in TotalPrice field. How can I do it?

    some notes...
    Create or replace Procedure CountInvoiceSums IS
    begin
    cursor c1 is
    select *
    from Invoices;
    records number;
    records=(select COUNT(*) from Invoices);
    invoiceN varchar2(5);
    for j 1..records
    LOOP
    --get invoice name:
    invoiceN=
    --change invoice Total price for
    (select SUM(ProductPrice*Amount)
    from Products p
    where p.INVOICENAME=invoiceN)
    END LOOP
    end;
    --=========================================
    Create or replace trigger InvoiceTotalPrice
    after update of ProductPrice on Products
    call CountInvoiceSums;
    Am I on the right way? If I am, I have 2 questions:
    1)how to edit field in j record? delete old the add new?
    2)how to get field in j record?
    Thanks in advance.
    P.S. please just advice not make for me, i want to lean it myself.

  • Pull images from SQL/PHP into Flash

    I have a website that displays images that are stored in a
    SQL database using PHP as a method for pulling and displaying the
    images. These images are stored in the database as text (ex:
    image1), then the PHP looks for the image like this:
    <img src="images/Photograph/<?php echo
    $row_rs_Photos['Image']; ?>.jpg" alt="" width="<?php echo
    $row_rs_Photos['Thumb_Width']; ?>" height="<?php echo
    $row_rs_Photos['Thumb_Height']; ?>" border="0" title="" />
    I want to pull these images into Flash. I've done a bunch of
    ActionScripting, but am no expert. Really don't have the foggiest
    idea where to start.
    -kirk

    I seem to have this one working, kinda. It has an array and
    automatically numbers the buttons, but there are some buttons, that
    ask SQL to return a photo that doesn't exist. For instance, there
    is no 7 or 8 ID in my SQL, so those buttons don't work:
    http://www.lbiphotos.com/Flash/loadImages_finished.html
    PHP Code:
    <?php require_once('my.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    $colname_rs_Photos = "-1";
    if (isset($_GET['passID'])) {
    $colname_rs_Photos = (get_magic_quotes_gpc()) ?
    $_GET['passID'] : addslashes($_GET['passID']);
    mysql_select_db($database_LBI_Photos_Connection,
    $LBI_Photos_Connection);
    $query_rs_Photos = sprintf("SELECT ID_Photos, Image,
    YearPhotographed FROM Photos WHERE ID_Photos = %s",
    GetSQLValueString($colname_rs_Photos, "int"));
    $rs_Photos = mysql_query($query_rs_Photos,
    $LBI_Photos_Connection) or die(mysql_error());
    $row_rs_Photos = mysql_fetch_assoc($rs_Photos);
    $totalRows_rs_Photos = mysql_num_rows($rs_Photos);
    $imageId = $_GET['passID'];
    //MUST use code below to grab $images
    $images =
    $row_rs_Photos['YearPhotographed'].'/'.$row_rs_Photos['Image'];
    print "image=" . $images;
    ?>
    <?php
    mysql_free_result($rs_Photos);
    ?>
    ACTIONSCRIPT:
    function loadImage(passID:Number) {
    var resultLv:LoadVars = new LoadVars();
    var sendLv:LoadVars = new LoadVars();
    resultLv.onLoad = function(success) {
    if (success) {
    mcLoader.loadClip(imagePath+this.image+".jpg",
    loadContainer);
    trace("passID: "+passID);
    sendLv.sendAndLoad(phpPath+"?passID="+String(passID),
    resultLv);
    function loadInit(target:MovieClip) {
    trace("Begin Loading File");
    trace("imagePath + this.image ; "+imagePath+this.image);
    function assignButtons() {
    for (var i in loadButtons) {
    this[loadButtons
    ].numberTxt.text = String(Number(i)+1);
    this[loadButtons].onRollOver = function() {
    this.gotoAndStop(2);
    this[loadButtons
    ].onRollOut = function() {
    this.gotoAndStop(1);
    this[loadButtons].onRelease = function() {
    trace("String(this).length "+String(this).length);
    if (String(this).length == 16) {
    loadImage(Number(String(this).substring(String(this).length-1)));
    if (String(this).length == 17) {
    loadImage(Number(String(this).substring(String(this).length-2)));
    var loadButtons:Array = new Array('loadBtn1', 'loadBtn2',
    'loadBtn3', 'loadBtn4', 'loadBtn5', 'loadBtn6', 'loadBtn7',
    'loadBtn8', 'loadBtn9', 'loadBtn10', 'loadBtn11', 'loadBtn12',
    'loadBtn13', 'loadBtn14', 'loadBtn15', 'loadBtn16');
    var loadContainer:MovieClip =
    this.createEmptyMovieClip("loadContainer",
    this.getNextHighestDepth());
    var siteUrl:String = "
    http://www.lbiphotos.com";
    var imagePath:String = siteUrl+"/images/Photograph/";
    var phpPath:String = siteUrl+"/Flash/images.php";
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var mcLoadObj:Object = new Object();
    mcLoadObj.onLoadInit = loadInit;
    mcLoader.addListener(mcLoadObj);
    //below centers called image
    loadContainer._x = (Stage.width/2-100);
    loadContainer._y = (Stage.height/2-100);
    assignButtons();

Maybe you are looking for

  • Can someone please look at my crash log and give me a clue?

    I can't quantify what could be causing this, but I hit play, and after a few bars everything locks up, freezes, and then crashes. This is all on my MBP Dual 2.6ghz, with 4gig RAM. Session is only at 24/44, with not too much going on. Have buffer maxe

  • About to make the big move from OS 9.2 to 10.4.8-Am I ready?

    Hi everyone, First, Happy New Year. Second, may I ask for your comments? I have a PPC AGP 450 Mhz G4 with a 50 GB drive running MAC OS 9.2.2 In preparation for the move to OS 10.4.8 I had a new 80 GB hard drive installed. My Apple techie told me to j

  • Cleaning Aluminium 24" iMac Screen

    My iMac glass screen has got lots of greasy splashes on it after someone ate a meal at the desk. Water alone won't shift it for some reason. Is it ok to use a tiny amount of vinegar in the water as a solvent? I mean I hope there is no layer of bloom

  • Horizontal scroll issue in table

    Hi all, I have used af:table with 14 columns and used frozen property to 4th column to freeze first 4 columns .For rest of columns horizontal scroll bar appears. Now issue is horizontal scroll is not working smoothly in Google Chrome Browser. It seem

  • Windows not genuine after recovering HDD

    HDD died, recovered drive and imaged to new drive.  Now get Windows is not genuine popups.  Contacted Microsoft, activation seems to be intact, they said to contact HP to see why product key is locked.  Tried submitting a ticket to HP, but didn't let