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 differnece between DROP TABLE & DELETE TABLE .

4 Answers   Cap Gemini,


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

0 Answers  


What is dbrm? What it contains? When it will be created?

0 Answers  


how do u update the faltfile into db2 table ?

4 Answers   RBS, TCS,


what's the best lock size that you could use when you create a tablespace?

2 Answers   IBM,


What is universal database?

0 Answers  


What are the advantages of using a PACKAGE?

2 Answers  


Is ibm db2 free?

0 Answers  


What are foreign keys in db2?

0 Answers  


How do I add a column to a table in db2?

0 Answers  


Explain what a plan is?

3 Answers   CTS,


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

1 Answers   IBM,


Categories