Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Define predicate?

1132


What is an instance in db2?

1033


How to get the ddl of a table in db2?

1131


How can you find out the # of rows updated after an update statement?

1116


What parameters are used to control the free space in DB2?

1056


What is a db2 collection?

1045


What is buffer pool?

1106


What is the role of schema in the db2 database?

1275


What is a cursor in programming?

1069


What is dclgen (declaration generator)?

1059


What is the function of logging in the db2 database?

1123


Mention the downsides of page level lock.

1161


Can we update view in db2?

1003


How can we read records for specific member in CL? AND rpg?

700


What is buffer pool and list some of them?

1028