Parameter and keyword description - insert statement, PL-SQL Programming

Assignment Help:

Parameter and Keyword Description: 

table_reference:

This identifies a table or view which should be available when you execute the INSERT statement, and for that you should have the INSERT privileges.

Subquery:

This is a SELECT statement which gives a set of rows for the processing. Its syntax is just similar to that of the select_into_statement without the INTO clause.

TABLE (subquery2):

The operand of the TABLE is a SELECT statement which returns a single column value, that should be the nested table or a varray cast as the nested table. The Operator TABLE informs the Oracle that the value is a collection, however not a scalar value.

Alias:

This is the other (generally short) name for the referenced table or a view.

column_name[, column_name]...:

This identifies a list of columns in the database table or view. The Column names need not appear in the order in which they were defined by the CREATE VIEW statement or CREATE TABLE. Though, no column name can appear more than once in the list. If the list does not involve all the columns in a table, the missing columns are set to the NULL or to a default value specified in the CREATE TABLE statement. 

sql_expression:

This is any expression valid in the SQL statement. 

VALUES (...):

These clauses assign the values of expressions to the corresponding columns in the column list. When there is no column list, the first value is inserted into the first column defined by the CREATE TABLE statement, and the second value is inserted into the second column, and so on. There should be only one value for each column in the column list. The first value is related with the first column; the second value is related with the second column, and so on. When there is no column list, you should supply a value for each column in the table. The values datatype being inserted should be compatible with the datatypes of the corresponding columns in the column list.

As numerous rows are added to the table as are returned by the subquery in the VALUES clause. The sub query should return a value for every column in the column list or for every column in the table when there is no column list.

subquery3:

This is a SELECT statement which gives a value or set of values to the VALUES clause. The sub query should return only one row containing a value for every column in the column list or for every column in the table when there is no column list.

returning_clause:

This clause returns values from the inserted rows, thus removing the need to SELECT the rows subsequently. You can retrieve the column values into the variables and/or host variables, or into the collections and/or host arrays. Though, you cannot use the RETURNING clause for the remote or parallel inserts. 


Related Discussions:- Parameter and keyword description - insert statement

Mysql developer/programmer, Project Description: I want somebody who can...

Project Description: I want somebody who can help me with an idea that I have been working on for a few months now. The person will require extensive knowledge of warcraft 3 PvP

Some varray examples-manipulating collections, Some Varray Examples In S...

Some Varray Examples In SQL Plus, assume that you define an object type Project, as described below: SQL> CREATE TYPE Project AS OBJECT ( 2 project_no NUMBER(2), 3 title VARCHA

Obtaining a natural join by specifying the common columns, Obtaining a natu...

Obtaining a natural join by specifying the common columns Synatax: SELECT * FROM IS_CALLED JOIN IS_ENROLLED_ON USING ( StudentId ) However, a named columns join doe

Program, heap sort program in pl/sql

heap sort program in pl/sql

Benefit of the dynamic sql pl sql, Benefit of the dynamic SQL: This pa...

Benefit of the dynamic SQL: This part shows you how to take full benefit of the dynamic SQL and how to keep away from some of the common pitfalls. Passing the Names of Sc

Data types in sql - integer, Data Types in SQL - Integer INTEGER or  s...

Data Types in SQL - Integer INTEGER or  synonymously INT, for integers within a certain range. SQL additionally has types SMALLINT and BIGINT for certain ranges of integers. T

Parameter and keyword description - %type attribute, Parameter and Keyword ...

Parameter and Keyword Description: collection_name: This keyword identifies the index-by table, nested table, or varray formerly declared within the present scope. cu

What are decision support systems, (a) What are decision support systems, a...

(a) What are decision support systems, and what role do they play in the business environment? (b) Data warehousing is defined as "a subject-oriented, integrated, non-volatile c

Appgen to sap data export, We are seeking a freelance consultant that is fa...

We are seeking a freelance consultant that is familiar with Appgen applications. We require exporting all our data into a format appropriate for importing into SAP Business One. Pl

Use the pls_integer datatype - performance of application, Use the PLS_INTE...

Use the PLS_INTEGER Datatype When you require to declare an integer variable, use the datatype PLS_INTEGER that is the most efficient numeric type. That is as the PLS_INTEGER

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd