Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle insert into

INSERT INTO table
(column1, column2, ... column_n )
VALUES
(expression1, expression2, ... expression_n );
Comment

oracle insert into

INSERT INTO table
(column1, column2, ... column_n )
SELECT expression1, expression2, ... expression_n
FROM source_table
[WHERE conditions];
Comment

oracle call a function in a insert statement

FUNCTION mfi_cust_details(vacid VARCHAR2) return my_table%ROWTYPE as 
  my_table%ROWTYPE vcustdetails;
BEGIN
  SELECT a.cust_title_code,
    a.cust_id,
    b.address_line1,
    b.address_line2,
    mfi_citycountry (b.country, b.city),
    b.zip
  INTO vcustdetails 
  FROM tbaadm.cmg a, crmuser.address b
            WHERE TRIM (a.cif_id) = TRIM (b.orgkey)
              AND UPPER (b.addresscategory) IN ('MAILING', 'REGISTERED')
              AND cust_id IN (SELECT cust_id
                              FROM tbaadm.gam
                              WHERE acid = vacid);  

  RETURN vcustdetails;
END;
Comment

PREVIOUS NEXT
Code Example
Sql :: TSQL Find csv file in folder 
Sql :: create backup 
Sql :: compare subqueries oracle 
Sql :: insert statement with $1 
Sql :: disadvantages of stored procedures sql 
Sql :: parent: [Error: SQLITE_READONLY: attempt to write a readonly database] { 
Sql :: prestashop alter table if not exists 
Sql :: Get the Domain Name, Page Name and Query Parameter from a URL 
Sql :: T-SQL - Where Used List (Table/View) 
Sql :: tornado_mysql 
Sql :: how to create a new db from dumb file mysql 
Sql :: delete in sql 
Sql :: oracle alter database open restricted session 
Sql :: mysql type conversion 
Sql :: pgsql commit rollback example 
Sql :: mariadb current date plus 1 day 
Sql :: Patch Applied to the Oracle Database 
Sql :: mysql pv progres 
Sql :: my sql data file extention 
Sql :: sql find column with trailing space 
Sql :: alling a function from PL/SQL in a select statement in ORACLE 
Sql :: sql how to get courses that i have made prerequisites 
Sql :: stored procedure function relation 
Sql :: How to Search in all Columns for all tables in a database for Date Value in SQL Server - SQL Server 
Sql :: sqlite3 create table from another table 
Sql :: How to insert NULL value in MySQL 
Sql :: How to select only the first rows for each unique value of a sql tablecolumn? 
Sql :: create table with error 
Sql :: groupby sort sql hive 
Sql :: odata expand and $select only column values 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =