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

Assignment of variable - updating a variable, Assignment of Variable - Upda...

Assignment of Variable - Updating a Variable Syntax: SET SN = SID ('S2'); This can obviously be read as "set the variable SN to be equal in value to SID ( 'S2' )".

Parameter modes - pl sql, Parameter Modes: You do not require to speci...

Parameter Modes: You do not require to specify a parameter mode for the input bind arguments (those used, for illustration, in the WHERE clause) as the mode defaults to IN. Th

Write sql queries, Write SQL queries to solve the following specifications....

Write SQL queries to solve the following specifications. Include the query AND THE OUTPUT.  A screen dump of the output is acceptable. Show as many rows as you can. A screen dump i

%rowcount, %ROWCOUNT When its cursor or cursor variable is opened, the...

%ROWCOUNT When its cursor or cursor variable is opened, the %ROWCOUNT is zeroed. Before the first fetch, the %ROWCOUNT yields 0. Afterward, it yields the number of rows fetche

Sql outer join, SQL outer join SELECT * FROM IS_CALLED NATURAL LEFT...

SQL outer join SELECT * FROM IS_CALLED NATURAL LEFT JOIN IS_ENROLLED_ON Note that adding LEFT to an invocation of CROSS JOIN has no effect unless the right-hand operand

Name resolution - pl/sql, Name Resolution   During the compilation, th...

Name Resolution   During the compilation, the PL/SQL compiler relates identifiers like the name of a variable with an address or memory location, actual value, or datatype. Th

Keyword and parameter description in pl sql, Keyword and Parameter Descript...

Keyword and Parameter Description: label_name: This is an undeclared identifier which optionally labels the PL/SQL block. When used, label_name should be enclosed by the do

Understanding nested tables, Understanding Nested Tables Within the data...

Understanding Nested Tables Within the database, the nested tables can be considered as one-column database tables. The Oracle stores the rows of a nested table in no specific o

Theory of biogenesis, THEORY OF BIOGENESIS - This theory explains th...

THEORY OF BIOGENESIS - This theory explains that the existing living organisms originated from pre-existing living beings not from non living entities. This concept of or

Calculate the number of tuples, Question: (a) The objective of query opti...

Question: (a) The objective of query optimization is to choose the most efficient strategy for implementing a given relational query, thereby improving the system performance. On

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