By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,965 Members | 1,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,965 IT Pros & Developers. It's quick & easy.

How to add a column to the table

P: 7
Expand|Select|Wrap|Line Numbers
  1. ALTER TABLE castreq ADD COLUMN custno integer DEFAULT 0; 
  2.  
the value of custno is "CLASS I";

can i use this statement in procudere
my procedure is to add more columns in the table

Please give the correct statement to add a column in procudure
Jul 27 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 534
Expand|Select|Wrap|Line Numbers
  1. ALTER TABLE castreq ADD COLUMN custno integer DEFAULT 0; 
  2.  
the value of custno is "CLASS I";
... ...
I'm not sure I understand you:
you are declaring column custno as an integer, then you are referring to a string value "CLASS I" - can you clarify your question?
Jul 29 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.