insert into tablename a
column1,
column2
select column1,
column2
from tablename b

i am getting abend -104..can any one help?

Answer Posted / guna

insert into tablename(column1,column2)
select column1,column2 from tablename

Alias names 'a' and 'b' should not be used.In case u want
to use alias names, specify the column names with prefix as
a.column1,b.column2 like that.
Also, brackets must be given in an insert statement.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the role of data manager in the db2 database?

650


What is a db2 tablespace?

602


What is the physical storage length of the data types date, time, and timestamp?

614


What is null indicator in cobol db2?

589


What is access path in db2?

566






What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

716


What is db2 purescale?

553


What is dclgen (declaration generator)?

605


What is a db2 schema?

764


What are types of indexes?

597


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

750


What is check constraint. Explain with example.

650


What is host variable?

599


What does db2 plan contain?

573


How to connect to db2 database from windows command line?

565