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

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

Answers were Sorted based on User's Feedback



insert into tablename a column1, column2 select column1, column2 from tablenam..

Answer / 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

insert into tablename a column1, column2 select column1, column2 from tablenam..

Answer / munabhai

illegal symbol,then u can find -104 error

Is This Answer Correct ?    2 Yes 2 No

insert into tablename a column1, column2 select column1, column2 from tablenam..

Answer / amala

A 104 error indicates that either a field that is defined
as integer is specified with quotes or an Char value in
insert that needs to represented with quotes is not
represented so...Hope this helps to solve your issue

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More DB2 Interview Questions

What is cursor with hold option in db2?

0 Answers  


when we are trying to update db2 rows. if the program abends . how we will know that the last successful update row was

5 Answers   IBM,


What kind of database is db2?

0 Answers  


Can one database have multiple instances?

0 Answers  


What is meant by repeatable read?

4 Answers  






How to solve S0C7 abend with out using DISPlay in 10 mins?

1 Answers   IBM,


What is the maximum length of a column name in DB2? 18 or 30 or anything other than these?

4 Answers  


AGGREGATE function support by DB2. A) SUM & AVG B) SUM, MIN & AVG C) SUM, MAX, AVG , MIN &COUNT D) NONE

2 Answers   Accenture,


what is SPUFI ?

2 Answers  


can i code union in cobol-db2 pgm ?

4 Answers   Patni,


I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?

3 Answers  


How can you compare table column after update and before update?

5 Answers   Satyam,


Categories