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

Laws / rules associated with evolution, LAWS / RULES - Dollo's Law    ...

LAWS / RULES - Dollo's Law                     :           Living organisms do exhibit evolutionary irreversibility or evolution is irreversible. Williston's Law

Parameter aliasing, Parameter Aliasing   To optimize the subprogram ca...

Parameter Aliasing   To optimize the subprogram call, the PL/SQL compiler can decide between the two techniques of the parameter passing. With the by-value techniques, the v

Operators on tables and rows, Operators on Tables and Rows Row Extrac...

Operators on Tables and Rows Row Extraction TUPLE FROM r, SQL has row subqueries. These are just like scalar subqueries except that they may specify more than one column.

Naming conventions-pl/sql, Naming Conventions The similar naming conventi...

Naming Conventions The similar naming conventions apply to all PL/SQL program items and units including the variables, cursors, constants, cursor variables, procedures, exception

Write a program, to write a heap sort program usin pl-sql

to write a heap sort program usin pl-sql

Authorize and fetch data from instagram, Authorize and fetch data from Inst...

Authorize and fetch data from Instagram Project Description: Incorporate Instagram feed on mobile site platform: c#, ms sql, jquerymobile, jquery Web admin Author

Example of table literal - sql, Example of Table Literal - SQL Exampl...

Example of Table Literal - SQL Example: A Table Literal (correct version) VALUES ('S1', 'C1', 'Anne'), ('S1', 'C2', 'Anne'), ('S2', 'C1', 'Boris'), ('S3', 'C3'

First step at defining type sid in sql, First Step at defining type SID in ...

First Step at defining type SID in SQL CREATE TYPE SID AS ( C VARCHAR(5) ) ; Explanation: TYPE SID announces that a type named SID is being defined to the syst

Object type in pl/sql, Object Type: The object type is a user-define...

Object Type: The object type is a user-defined composite datatype which encapsulates a data structure along with the functions and procedures required to manipulate the data

Projection and existential quantification - sql, Projection and Existential...

Projection and Existential Quantification - SQL Intuitively it might seem that projection in SQL is simply a matter of specifying the required columns in the SELECT clause, a

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