When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Oracle / PLSQL: INSERT Statement - TechOnTheNet

    www.techonthenet.com/oracle/insert.php

    This Oracle INSERT statement inserts multiple records with a subselect. If you wanted to insert a single record, you could use the following Oracle INSERT statement: INSERT INTO clients. (client_id, client_name, client_type) SELECT 10345, 'IBM', 'advertising'. FROM dual. WHERE NOT EXISTS (SELECT *. FROM clients.

  3. Oracle / PLSQL: INSERT ALL Statement - TechOnTheNet

    www.techonthenet.com/oracle/questions/insert_rows.php

    You can also use the INSERT ALL statement to insert multiple rows into more than one table in one command. For example, if you wanted to insert into both the suppliers and customers table, you could run the following SQL statement: INSERT ALL. INTO suppliers (supplier_id, supplier_name) VALUES (1000, 'IBM')

  4. SQL: INSERT Statement - TechOnTheNet

    www.techonthenet.com/sql/insert.php

    WHERE clients.client_id = suppliers.supplier_id); This SQL INSERT statement inserts multiple records with a subselect. If you wanted to insert a single record, you could use the following SQL INSERT statement: INSERT INTO clients. (client_id, client_name, client_type) SELECT 10345, 'IBM', 'advertising'. FROM dual.

  5. Oracle / PLSQL: AFTER INSERT Trigger - TechOnTheNet

    www.techonthenet.com/oracle/triggers/after_insert.php

    CREATE OR REPLACE TRIGGER orders_after_insert AFTER INSERT ON orders FOR EACH ROW DECLARE v_username varchar2(10); BEGIN -- Find username of person performing the INSERT into the table SELECT user INTO v_username FROM dual; -- Insert record into audit table INSERT INTO orders_audit ( order_id, quantity, cost_per_item, total_cost, username ) VALUES ( :new.order_id, :new.quantity, :new.cost_per ...

  6. Oracle / PLSQL: ORA-01400 Error Message - TechOnTheNet

    www.techonthenet.com/oracle/errors/ora01400.php

    Correct your INSERT statement so that you do not insert a NULL value into a column that is defined as NOT NULL. For example, if you had a table called suppliers defined as follows: CREATE TABLE suppliers ( supplier_id number not null, supplier_name varchar2(50) not null );

  7. Oracle / PLSQL: Insert a date/time value into an Oracle table

    www.techonthenet.com/oracle/questions/insert_date.php

    Answer: To insert a date/time value into the Oracle table, you'll need to use the TO_DATE function. The TO_DATE function allows you to define the format of the date/time value. For example, we could insert the '3-may-03 21:02:44' value as follows: Learn more about the TO_DATE function. I have a date field in an Oracle table and I want to insert ...

  8. INSERT with SUBQUERY in VALUES clause — oracle-mosc

    community.oracle.com/mosc/discussion/3633708

    3. In the body, insert detailed information, including Oracle product and version. Please abide by the Oracle Community guidelines and refrain from posting any customer or personally identifiable information (PI/CI). Cloud / Fusion customers - Our Cloud community has moved! Please go to Cloud Customer Connect.

  9. Oracle / PLSQL: ORA-02291 Error Message - TechOnTheNet

    www.techonthenet.com/oracle/errors/ora02291.php

    Since the supplier_id value of 5000 does not yet exist in the supplier table, you need to first insert a record into the supplier table as follows: INSERT INTO supplier (supplier_id, supplier_name, contact_name) VALUES (5000, 'Microsoft', 'Bill Gates'); Then you can insert into the products table:

  10. Oracle / PLSQL: CREATE TABLE AS Statement - TechOnTheNet

    www.techonthenet.com/oracle/tables/create_table2.php

    You can also use the Oracle CREATE TABLE AS statement to create a table from an existing table by copying the existing table's columns. It is important to note that when creating a table in this way, the new table will be populated with the records from the existing table (based on the SELECT Statement ).

  11. Oracle / PLSQL: BEFORE INSERT Trigger - TechOnTheNet

    www.techonthenet.com/oracle/triggers/before_insert.php

    CREATE OR REPLACE TRIGGER orders_before_insert BEFORE INSERT ON orders FOR EACH ROW DECLARE v_username varchar2(10); BEGIN -- Find username of person performing INSERT into table SELECT user INTO v_username FROM dual; -- Update create_date field to current system date :new.create_date := sysdate; -- Update created_by field to the username of the person performing the INSERT :new.created_by ...