IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error like illegeal symbol integer with sqlcode -104


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krishna_mf

New User


Joined: 31 Jan 2007
Posts: 56
Location: banglore

PostPosted: Tue Jul 24, 2007 2:58 pm
Reply with quote

hi
when i am exceuting the below query its is giving error like illegeal symbol integer with sqlcode -104

alter table emptab add column empsal integer ;

can anyone please tell me what is correct syntax to add a column in a DB2 table
Back to top
View user's profile Send private message
kussu
Warnings : 1

New User


Joined: 16 May 2007
Posts: 33
Location: India

PostPosted: Tue Jul 24, 2007 5:56 pm
Reply with quote

The Syntax for this should be as like mentioned below

ALTER TABLE table_name
ADD column_name column-definition;


For example:
ALTER TABLE supplier
ADD supplier_name varchar2(50);
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts U0016 error in JCL JCL & VSAM 4
No new posts python on z/OS error no encoding decl... Testing & Performance 0
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
Search our Forums:


Back to Top