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

Mention a credible reason why select* is never given preference in an sql program that has been embedded.

937


Is ibm db2 free?

760


What is host variable?

804


What is dclgen in db2?

879


What is a system catalog table in db2?

830


What is isolation level in db2?

753


How many databases can be created inside an instance in db2 ?

808


Why db2 is called db2?

766


What is package in db2 mainframe?

730


How to check sequence on a table in db2?

805


What is multi row fetch in db2?

774


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

813


What are types of indexes?

773


What is the use of dclgen in db2?

796


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

972