Reg: try to insert * dbms_output. PUT_line ('hi') * in the table.

Hi all
Try inserting dbms_output. PUT_line ('hi') in the table.

DOF of the table is:
create table test_result (tab varchar2 (30), varchar2 (2000)) of the State;


The code is:

DECLARE
A1 VARCHAR2 (1000);
BEGIN
A1: = dbms_output. PUT_line ('hi');
INSERT INTO test_result VALUES ('PRASAD', dbms_output. PUT_line ('hi'));
END;

Get the error message like:
Error from the 1 in the command line:
DECLARE
A1 VARCHAR2 (1000);
BEGIN
A1: = dbms_output. PUT_line ('hi');
INSERT INTO test_result VALUES ('PRASAD', dbms_output. PUT_line ('hi'));
END;
Error report:
ORA-06550: line 4, column 8:
PLS-00222: no function with name 'PUT_LINE' does exist in this scope
ORA-06550: line 4, column 2:
PL/SQL: Statement ignored
ORA-06550: line 5, column 53:
PL/SQL: ORA-00904: invalid identifier
ORA-06550: line 5, column 1:
PL/SQL: SQL statement ignored
06550 00000 - "line %s, column % s:\n%s".
* Cause: Usually a PL/SQL compilation error.
* Action:


Thanks in advance.

If you try to capture the data of the output as DBMS_OUTPUT buffer. Put_line written to, then you must use the procedure GET_LINE in the same package.

for example

SQL> ed
Wrote file afiedt.buf

  1  DECLARE
  2    A1 VARCHAR2(1000);
  3    status number;
  4  BEGIN
  5    dbms_output.enable;
  6    dbms_output.PUT_line('hi') ;
  7    dbms_output.get_line(a1, status);
  8    INSERT INTO test_result VALUES('PRASAD',a1);
  9* END;
SQL> /

PL/SQL procedure successfully completed.

SQL> select * from test_result;

X          Y
---------- ----------
PRASAD     hi

SQL>

Tags: Database

Similar Questions

  • The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem

    The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem if I'm updating from Acrobat X?

    You have the fonts installed in the system. This has not changed. (Having the police is not always enough, but it is certainly necessary).

  • How to insert image from mysql into the table using php and create the checkbox in the table?

    How can I insert image from mysql into the table using php and create the checkbox for each data as a vote? Here is my code...

    WELCOME

    connect_error) {die ("connection failed:".)} $conn-> connect_error); } $sql = "SELECT no, Calon, ID, of course, the Image OF THE candidates." $result = $conn-> Query; If ($resultat-> num_rows > 0) {echo ' '; export data of each line while ($row = $result-> fetch_assoc()) {"echo"}}
    NO Candidate INFO Vote
    " . $row ["no"]. "-" . $row ["Calon"]. "
    -" . $row ['ID']. "
    -" . $row ['class']. "
    "; } ECHO ' ' ;} else {echo '0 results' ;} $conn-> close();?} >

    hope someone can help me because I am a newbie in this program... need to finish this project... Thank you.

    If you have saved the file name in the database, it's pretty simple.

    echo '' . $row['description'] . '';
    

    Is the same for the box:

    echo '';
    

    If you have saved the image file in the database, it is much more complicated. I recommend you store only the file name in the database.

  • When I try to insert key it says its the key by default and can not be used. Sticker on the bottom of my laptop is all cleared off the coast.

    I recently installed Linux, now I have installed Windows 7 Hp 36 bit now when I try to insert my key it says its the key by default and can not be used. To make it better. My sticker on the bottom of my laptop is all set off but I Got the serial number and product and model. What should I do?

    I did install the ISO wrong or my key has expired?

    You can't just use any key, the product key for your computer is unique. If the product key on the COA sticker at the bottom of your laptop is damaged, you will need to purchase a new product key for Windows 7 Edition Home Premium and use:

    http://www.Microsoft.com/Windows/buy/default.aspx

    http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-product-key

  • Insert and add data to the table to a batch file

    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE Production 11.1.0.7.0
    AMT for 32-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production


    My patch to input file looks like this:

    A0397990002000001
    A0459380377000075
    A1291115796000002
    C0483110026000080
    D0491114923000004
    A0348400660000000
    G0209111373-

    Separate columns look like this:

    A0397 990002 000001

    account amount of IDN


    I'm new to PL/SQL and having a problem changing or adding a record in a table. Don't know how to check if a record exists in the table change if not
    Insert the record.

    If the quantity is 000000 or - the record should be deleted. I have code in place to do this however, don't know how to handle change or add the part.

    Here is the code I have so far and thanks for looking:

    Set serveroutput on
    create or replace directory user_dir as 'c:\dataformats\incoming\ ';


    DECLARE


    v_filename VARCHAR2 (100); -The name of the data file
    v_file_exists boolean;
    number of v_file_length;
    number of v_block_size;
    f utl_file.file_type;
    s varchar2 (200);
    lineString varchar (200);

    -not used c_ *.
    c_account ID_REQ_STG.account%TYPE;
    c_IDN ID_REQ_STG. IDN % TYPE;
    c_quantity ID_REQ_STG.quantity%TYPE;

    ID_REQ_TUPLE ID_REQ_STG % ROWTYPE;

    v_account varchar (5);
    v_IDN varchar (6);
    V_quantity varchar (6);

    BEGIN
    v_filename: = ' PTCLICK. MANUAL.12SERIES.TXT';


    DBMS_OUTPUT. Put_line (v_filename); -the name of the file


    UTL_FILE.fgetattr ("USER_DIR", v_filename, v_file_exists, v_file_length, v_block_size);

    IF v_file_exists THEN

    dbms_output.put_line ("'File Exists");

    f: = utl_file.fopen ("USER_DIR", v_filename, "R");

    IF utl_file.is_open (f) THEN

    LOOP
    BEGIN
    UTL_FILE.get_line (f, s);
    lineString: = s;

    dbms_output.put_line (lineString);

    v_account: = substr (lineString, 1, 5);
    v_IDN: = substr (lineString, 6, 6);
    V_quantity: = substr (lineString, 12.6);


    dbms_output.put_line (v_account);
    dbms_output.put_line (v_IDN);
    dbms_output.put_line (V_quantity);

    -REMOVE

    IF v_quantity = '000000' GOLD v_quantity = '-'
    THEN
    REMOVE FROM ID_REQ_STG
    WHERE account = v_account and
    IDN = v_IDN;
    commit;
    dbms_output.put_line ('Deleted the folder' | v_account |) «and» | v_IDN);
    END IF;


    -CHANGE



    -ADD



    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    dbms_output.put_line ("' no data found");
    EXIT;
    END;

    END LOOP;

    END IF; -is open

    UTL_FILE.fclose (f);


    ON THE OTHER

    dbms_output.put_line ('file does not exist');

    END IF; -file exists

    EXCEPTION

    WHEN UTL_FILE. THEN ACCESS_DENIED
    DBMS_OUTPUT. Put_line ("' no access!");
    WHEN UTL_FILE. INVALID_PATH THEN
    DBMS_OUTPUT. PUT_LINE ('PATH DOES NOT EXIST');
    WHILE others THEN
    DBMS_OUTPUT. PUT_LINE ("SQLERRM: ' |") SQLERRM);



    END;
    /

    Hello

    Looks like a good candidate for a MERGER with an external table.

    The external table:

    create table ext_table (
     account varchar2(5),
     idn number(6),
     quantity varchar2(6)
    )
    organization external (
      type oracle_loader
      default directory user_dir
      access parameters (
        records delimited by newline
        fields (
          account position(1:5) char(5),
          idn position(6:11) char(6),
          quantity position(12:17) char(6)
        )
      )
      location ('test.txt')
    )
    reject limit unlimited;
    

    Then a simple MERGER should perform all your needs:

    MERGE INTO id_req_stg t
    USING (
     SELECT account,
            idn,
            decode(quantity, '-', 0, to_number(quantity)) as quantity
     FROM ext_table
    ) v
    ON ( t.account = v.account AND t.idn = v.idn )
    WHEN MATCHED THEN
      UPDATE SET t.quantity = v.quantity
      DELETE WHERE t.quantity = 0
    WHEN NOT MATCHED THEN
      INSERT (account, idn, quantity)
      VALUES (v.account, v.idn, v.quantity);
    

    Documentation related to the MERGER: http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9016.htm#SQLRF01606
    and on the outdoor tables: http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/tables013.htm#ADMIN12896

    Published by: odie_63 on June 10, 2010 14:26 (added docs)

  • missing parenthesis in insertion into separate lines select the table from the other table

    Hello

    could you help me with the following question?

    I have the following tables

    CREATE TABLE table1)

    ID varchar (12),

    col2 varchar (10),

    COL3 varchar (10),

    level varchar (10))

    CREATE TABLE table2)

    Id2 varchar (12)

    A varchar (10),

    B number (1)

    CONSTRAINT PRIMARY KEY PK (ID2, is));

    INSERT INTO table2 (ID2, A, B) SELECT ID, col2

    MAX (CASE WHEN level = "level 1" then 1

    level = 'level 2' then 2

    Level = 3 then 'niveau3') as colIN3)

    FROM table1 GROUP BY ID2, a.;

    the first table have duplicates as follows:

    Id2 COL2 COL3 level

    A1 pepe football level1

    A1 pepe football level2

    A1 pepe football level1

    A1 pepe basket level2

    A1 pepe pingpong level3

    the output should be selected with unique key (ID2, col3) lines and the level must be the greatest.

    Id2 COL2 COL3 level

    A1 pepe football level2

    A1 pepe basket level2

    A1 pepe pingpong level3

    The output of the script tells me the following messages:

    -lack of right parenthesis referring to the max function.

    Thanks adavance.

    Kind regards

    Hello

    Remember the ABC's of the GROUP BY:

    When you use a GROUP BY clause or in an aggregate function, then all in the SELECT clause must be:

    (A) a ggregate function,

    (B) one of the expressions "group By."

    (C) adding to C, or

    (D) something that Depends on the foregoing.  (For example, if you "GROUP BY TRUNC (dt)", you can SELECT "TO_CHAR (TRUNC (dt), 'Mon - DD')").

    To ask him, there are 5 columns in the SELECT clause.  The last one is a function MAX (...); It is an aggregate, is not serious.

    The first 2 columns are also named in the GROUP BY clause, so that they are well.

    The other 2 columns, country and internal_Id do not match any of the above categories.  These 2 columns cause the error.

    There are many ways to avoid this error, each producing different results.  You could

    • remove these 2 columns in the SELECT clause
    • Add these 2 columns in the GROUP BY clause
    • use the aggregation such as MIN, 2-column functions
    • remove the country from the SELECT clause and add internal_id to the GROUP BY clause
    • remove the internal_id from the SELECT clause, and add countries to the GROUP BY clause
    • ...

    What are the results you want?

    Whenever you have a question, please post a small example of data (CREATE TABLE and INSERT statements) for all the tables involved, so people who want to help you can recreate the problem and test their ideas.  Also post the results you want from this data, as well as an explanation of how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Insert a special character into the Table

    11g R2 on 64-bit Linux.

    First I created a table TEST (name varchar2 (100 char))

    Then I have create procedure sp_insert(varchar2 p_name)

    insert into TEST (p_insert) values;

    Last I have run the sp_insert procedure ("' a & b '");

    Now, here's the question. It prompted me to an entry. Obviously, the system assumes that the & b is a prompt variable. But in reality, in fact I want to insert the value ' a & b "literally.

    I learned that there are several ways to work around for example SET DEFINE OFF or SET ESCAPE in sqlplus, use 'a' | Chr (38) | 'b' and 'a' |' &' | ' b'. They are all good. But I really need is to dynamically insert the 'a & b' that happened during the first web page in the table on the fly.

    What are the General methods to do?


    Thank you

    I guess, Oracle will automatically take care of that.
    It poses problem when you run the proc of the IDE.

  • Need to insert test data in all the tables that were present in a schema

    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.
    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
      --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
      SELECT u.column_name, u.data_type, u.data_length
      --BULK COLLECT INTO l_col_tab
        FROM user_tab_columns u
       WHERE u.table_name = p_table_name;
    
      -- generated the values using below statement
      
        SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
        -- INTO collection varaible
          FROM user_tab_columns u
         WHERE TABLE_NAME = p_table_name;  
       
    
    END;
    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.



    Thank you
    Suri

    Suri wrote:
    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.

    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
    --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
    SELECT u.column_name, u.data_type, u.data_length
    --BULK COLLECT INTO l_col_tab
    FROM user_tab_columns u
    WHERE u.table_name = p_table_name;
    
    -- generated the values using below statement
    
    SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
    -- INTO collection varaible
    FROM user_tab_columns u
    WHERE TABLE_NAME = p_table_name;  
    
    END;
    

    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.

    Thank you
    Suri

    With some effort, you can write dynamic insert queries. Read the data dictionary views ALL_TABLES and ALL_TAB_COLUMNS to get the data you need. You may need to limit the list to the tables you specify to hardcode the names of the tables. You can read the views for the information of table and column that you need generate the insert column orders. It will be a lot of work and it might be easier to simply hardcode values. Dynamic SQL is difficult to debug and work with: (.) Something like this (untested and totally undebugged)

    declare
      cursor v_tab_col(p_table_name) is select * from all_tab_columns where table_name = p_table_name;
      v_text varchar2(32767);
      v_table_name varchar2(30);
    begin
      v_table_name := 'DUAL';
      --chr(10) is a newline for readability when debugging
      v_text := 'insert into '||v_table_name||chr(10)||'(';
      --loop to build column list
      for v_tab_rec in v_tab_col loop
        --add comma if not first item in list
        if v_tab_col%rowcount > 1 then
          v_text := v_text ||',';
        end if;
        v_text := v_text || v_tab_rec.column_name;
      end loop;
      v_text := v_text ||') values ('||
      --loop to build column values
      for v_tab_rec in v_tab_cur loop
        if (v_tab_rec.datatype = 'VARCHAR2') then
          --add comma if not first item in list
          if v_tab_col%rowcount > 1 then
            v_text := v_text ||',';
          end if;
          if v_tab_rec.datatype = 'NUMBER' then
           v_text := v_text || '9';
           elsif v_tab_rec.datatype = 'VARCHAR2' then
             v_text := v_text ||'X';
          end if;
      end loop;
      v_text := v_text || ')';
      execute immediate v_text;
    end;
    

    This code is not effective, but shows how to do what you described. You'll have to code for all data types you need and find a way to take into account the primary/foreign keys, yourself. I leave it to you to find a way to avoid selecting the data twice ;)
    Good luck!

    Published by: riedelme on July 24, 2012 13:58

  • Insert a new row in the table of the newspaper when the point on the object view

    Hi all

    I created approval system where I maintain newspaper which is based on a table (ApprovalLog) that contain the attribute as (approve_status, approved_by, Agencycode, approved_date).

    and I also create a display object that is based on the table (AgencyApproval). which is also contains some default field approval_status ' not


    I have create a jsf page using this object display and do drag drop as adf table now, I want to when change approve_status user field and click on commit button then

    a new line created on the ApprovalLog table and the values of column as (agencycode, approve_status, approved_by) comes from AgencyApproval table.

    How can I do this in the ADF.

    Please answer.

    Manish

    It's the weekend, what do you expect?

    You can override the method prepareForDML of the EO AgencyApproval and get the other VO (ApprovalLog) and creating a line of paper here. Here's a sample:

        @Override
        protected void prepareForDML(int i, TransactionEvent aTransactionEvent)
        {
            // mLogger.info("prepareForDML op:" + i);
            // olny add something if hte operation is insert or update
            if (i != EntityImpl.DML_DELETE)
            {
                String depName = this.getDepartmentName();
                if (depName == null)
                    depName= "";
                this.setDepartmentName(depName + "---");
                DummyViewImpl vo = (DummyViewImpl)this.getDBTransaction().findViewObject("ApprovalLogView1"); // change it to the name of your VO
                DummyViewRow row = (DummyViewRow)vo.createRow();
                // set the values ...
                row.setValue(getDepartmentId());
                vo.insertRow(row);
            }
            super.prepareForDML(i, aTransactionEvent);
        }
    

    Timo

  • After an Insert with DML trigger on the table of the object?

    I am trying to implement e-mail notifications, so I created a procedure that accepts the argument of id. In the procedure, it queries the table and send mail based on the result set. (in the trigger, I pass the value of: NEW.id). The procedure then queries the table for this line id.

    First of all, the update after, I received the error:

    ORA-04091: table is changing, the trigger/function cannot see ORA-06512

    So, I was advised to do in the declare block: pragma autonomous_transaction; I did, and that solved the problem here. THEN I did the same thing in the insert after trigger, but then I get the error:

    ORA-00060: Deadlock detected while you wait resource ORA-06512

    I asked our DBA and it says that you are not able to query the table on which the trigger is a topic of. I thought that it would be possible since his after insert or update?

    Can anyone offer any suggestions? :)

    Thank you
    Trent

    SB has given you the first part of the answer I wrote but here's another consideration.

    Suppose you make an insert...
    and the trigger is activated...
    and the message is sent.
    and then the transaction is cancelled...

    There are on the way to recall the message.

    This is another example of why, I think, Tom Kyte, refers to triggers as evil.
    I would recommend that you are looking for another strategy, possibly using DBMS_CHANGE_NOTIFICATION.

  • ERROR: could not insert a value zero in the table. < nom_de_colonne >

    Hi all

    I am facing the problem as follows:

    I've had several columns in the table "transaction".
    the table consists of columns

    transaction_id (PK)
    username (FK)
    equipment (FK)

    The form is made up of 3 columns,
    I would like to have username automatically shown as a text that is displayed by mapping to app_user.

    However, the value is treated as a null value when I tried to insert in the transaction of the table.

    the error is as follows:

    ORA-01400: cannot insert NULL into ('ITEMS'. "OPERATION '." ("" USERNAME ")
    Cannot process the TRANSACTION table row.

    I post in this thread
    app_user
    but I'm not able to solve the problem too, please advice.
    It is very urgent for me.

    Thanks in advance.

    Hello

    If you don't want the user to be able to change it and you want according to the value on the current user name, edit the item and:

    1 set the type: display text (State record)

    2 assign the default value: APP_USER

    3. set the default value Type: PL/SQL Expression

    4 - Set the Source: always, replacement of value that exists in session state

    5 set the Source Type: database column

    6. set the value of the Source or the expression to: username

    Andy

  • Reg: Relaxation and Don auto primary key in the table definition

    Hi all
    I wrote

    * 1 problem :*

    SEQUENCE:
    CREATE SEQUENCE ztrig_seq1
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    START WITH 1
    INCREMENT BY 1
    CACHE 20;

    TRIGGERING FACTOR:
    create or replace trigger ztrig_trig before insert on ztrig
    for each line
    Start
    insert into ztrig values (ztrig_seq1.nextval,:new.name);
    end;

    While inserting data such as:

    Insert into ztrig values ('john');

    It is showing error as:
    Error from the 1 in the command line:
    Insert into ztrig values ('john')
    Error in the command line: 1 column: 12
    Error report:
    SQL error: ORA-00947: not enough values
    00947 00000 - not enough of"values."
    * Cause:
    * Action:

    Please fix this.

    * 2nd problem :*
    Can we give automatic numbering as primarykey when you set the table?


    Thanks in advance.

    999 wrote:
    Hi all
    I wrote

    * 1 problem :*

    SEQUENCE:
    CREATE SEQUENCE ztrig_seq1
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    START WITH 1
    INCREMENT BY 1
    CACHE 20;

    TRIGGERING FACTOR:
    create or replace trigger ztrig_trig before insert on ztrig
    for each line
    Start
    insert into ztrig values (ztrig_seq1.nextval,:new.name);
    end;

    Modify this trigger as follows.

    CREATE OR REPLACE TRIGGER ztrig_trig BEFORE INSERT ON ztrig
    FOR EACH ROW
    BEGIN
           :NEW. := ztrig_seq1.nextval;
    END;
    /
    

    While inserting data such as:

    Insert into ztrig values ('john');

    It is showing error as:
    Error from the 1 in the command line:
    Insert into ztrig values ('john')
    Error in the command line: 1 column: 12
    Error report:
    SQL error: ORA-00947: not enough values
    00947 00000 - not enough of"values."
    * Cause:
    * Action:

    Change the Insert as follows

    INSERT INTO ztrig (name) VALUES ('john');
    

    Please fix this.

    * 2nd problem :*
    Can we give automatic numbering as primarykey when you set the table?

    The answer is no.

  • Try to insert this color picker. The issue of JavaScript.

    That's what I would do:

    jQuery Color Picker, selector, selector Plugin - colpick.com

    This is the code:

    <div class="color-box"></div> <div class="color-box"></div> <div class="color-box"></div>

    $('.color-box').colpick({ colorScheme:'dark', layout:'rgbhex', color:'ff8800', onSubmit:function(hsb,hex,rgb,el) { $(el).css('background-color', '#'+hex); $(el).colpickHide(); } }) .css('background-color', '#ff8800');

    .color-box { float:left; width:30px; height:30px; margin:5px; border: 1px solid white; }

    Color Picker.PNG

    I'm confused about what goes where. From what I've read so far, the JS should go in the Page Properties > metadata > HTML.

    The HTML code should be inserted via object > insert HTML code? No idea on the CSS.

    Ignorance is frustrating.

    Hello

    To respond to your request.

    A. JS and CSS goes to the head section of the page. Therefore, you must add the same using:

    1. right click on your page

    2. choose "page properties".

    3. choose the metadata

    4. add javascript/CSS in the section head, as defined below:

    For JS:

    For the CSS:

    Take a look:

    B. to set HTML on a page, you just to use the "Insert html" option and place your HTML code. Take a look:

    I hope this helps

    Let me know if you have any additional questions.

    Regads

  • Insert multiple form fields into the table DB 1.

    Hey everybody. I'm having this problem by inserting several products in the products table by using a form. Here's the form.

    = Start of form =.

    < name cfparam = "URL. Default BusinessID"=" "/ >"

    < cfquery name = "qBusiness" datasource = "wyi2" >
    SELECT BusinessID, last
    Business
    WHERE BusinessID = #URL. BusinessID #.
    < / cfquery >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > < cfoutput query = "qBusiness" > #BusinessName # events < / cfoutput > < / title >
    < link href = "css/wyi.css" rel = "stylesheet" type = "text/css" / > "
    < / head >
    < body >
    < action = "events_process.cfm cfform? "BusinessID = #BusinessID #" method = "post" >
    < table border = "0" cellspacing = "0" cellpadding = "2" >
    < b >
    < td > < table >
    < td align = "center" > < table > BusinessID
    < td align = "center" > < table > Discription
    < td align = "center" > < table > price
    < /tr >
    < b >
    < td > sale 1 < table >
    < td > < cfinput type = "text" name = "BusinessID_1" size = "5" value = "#URL. BusinessID #"> < table >"
    < td > < cfinput type = "text" name = "Discription_1" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_1" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 2 < table >
    < td > < cfinput type = "text" name = "BusinessID_2" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_2" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_2" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 3 < table >
    < td > < cfinput type = "text" name = "BusinessID_3" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_3" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_3" size = "5" > < table >
    < /tr >
    < b >
    < td > < table > 4 sale
    < td > < cfinput type = "text" name = "BusinessID_4" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_4" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_4" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 5 < table >
    < td > < cfinput type = "text" name = "BusinessID_5" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_5" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_5" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 6 < table >
    < td > < cfinput type = "text" name = "BusinessID_6" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_6" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_6" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 7 < table >
    < td > < cfinput type = "text" name = "BusinessID_7" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_7" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_7" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 8 < table >
    < td > < cfinput type = "text" name = "BusinessID_8" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_8" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_8" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 9 < table >
    < td > < cfinput type = "text" name = "BusinessID_9" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_9" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_9" size = "5" > < table >
    < /tr >
    < b >
    Sale10 < td > < table >
    < td > < cfinput type = "text" name = "BusinessID_10" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_10" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_10" size = "5" > < table >
    < /tr >
    < b >
    < td > < table >
    < td colspan = "3" align = "center" >
    < cfinput type = "submit" name = "eButton' value = 'Add all' >
    < table >
    < /tr >
    < /table >
    < / cfform >

    < / body >
    < / html >

    = End of form =.

    The database table 'Products' has BusinessID, ProductDiscription, ProductPrice, ProductID (primary key, auto-numbering).

    I wanted to add the products form how many ranks when filled. I tried a lot of cfif tag to insert only if a cert form field is defined and not empty, but no go. I looked in the forums to find someone with the same problem... no go. Everyone can see what I am doing wrong or am I doing more work so much that the CF is going?

    Without doubt, if one of the three fields for a given insertion is empty, you won't want to insert this straight line?

    If so, you can simply wrap your query to insert with conditional logic:

    ... your query goes here...

    Of course, you could better served by including also the validation of form, either in the form itself, with the help of JavaScript and/or CFFORM, or in your action before executing this code page.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Read this before posting:

    http://forums.Adobe.com/thread/607238

  • Try to select another plan without qualifying the table owner...

    How to select another pattern without qualifying the owner of the selected table, or create synonyms or editing session?

    ex.

    UserA has table tab1
    UserB must choose in tab1 without qualification


    UserB has certain rights on tab1
    10.2 db

    Select * from tab1;
    returns nothing

    Select * from UserA.tab1;
    Rows returned

    Thank you

    That doesn't seem possible. I would tend to bet that the developer said wrong something. Maybe he meant, for example, that you create synonyms for users because they use public synonyms?

    Justin

Maybe you are looking for

  • Question of B550 Wireless all-in-One

    So I'm a happy owner of ideacentre B550 that came with windows preinstalled 8.1. After using it for awhile, I switched to linux due to some work stuff, then completely uninstalled victory 8.1. Now, I just installed windows 7 x 64 and had some problem

  • Continue to use MS Word 2003 instead of the Word 2007 that came with my new operating system (Windows Vista)

    I have Windows Vista OS with Word 2007 (bougth with my new machine).  Previously, I have Windows XP with Windows 2003.  I would like to keep Word 2003 and which have to be my default program.  How can I do this?  I have still my Windows XP disc - sho

  • CISCO Anyconnect and using TLS V1.2

    Hello I ran an anyconnect VPN Service that uses SSLv3, after POODLE, we moved on TLSv1, which worked well, but I have recently been informed that TLSv1 is also vulnerable to POODLE. I upgraded to the latest version of the software firewall (it is a 5

  • Laptop turns on in the bag... I think that updating Windows?

    I just had the unpleasant surprise of out my laptop bag after 2 hours and it was still running! It was hot to the touch and with gratitude, it seems to work very well. But it's the third time, it's happened since I bought it in January and it is quit

  • X1C bios updating bootable image is empty

    Hello I am running linux only on my X1C and I want to update BIOS/UEFI, but bootable image in the update of the bios (http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS030685) is empty: $> iso-info g6uj03uc.iso -l iso-info version 0.83 x8