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...


How can we add a column to a table without altering the
same?

Answers were Sorted based on User's Feedback



How can we add a column to a table without altering the same?..

Answer / shoaib

you can add new column by using CAST keyword.

Eg:

Suppose your existing table say #EMP contain the following
Columns:

empid,
empname,
empaddr

you want to add empsal columns.

Query:
select
empid,
empname,
empaddr,
(null as decimal(18,2))empsal
from #EMP
into #EMP1;

Is This Answer Correct ?    18 Yes 10 No

How can we add a column to a table without altering the same?..

Answer / sandip

Thanks Devraj.
But i just mean is their any way of adding colum without
using alter statement?

Is This Answer Correct ?    8 Yes 9 No

How can we add a column to a table without altering the same?..

Answer / sanjay rawat

In oracle,
1. take data in new table from existing table
2. add a new column in new table by using alter command
3. drop existing table
4. rename new table with existing table name
5. Check by select query

Is This Answer Correct ?    1 Yes 3 No

How can we add a column to a table without altering the same?..

Answer / devraj

In Oracle - create nother table with new column
2. insert complete data into this
3. drop orignal table
4. rename the created table to orignal table

Is This Answer Correct ?    12 Yes 26 No

Post New Answer

More Sybase Interview Questions

How can we add a column to a table without altering the same?

4 Answers   BNP Paribas,


What is the difference in storage type of numeric and decimal data types in sybase ?

0 Answers  


Is data insertion is fast in SYBASE IQ if we have more indexes on a table?

3 Answers   FIC,


What is sybase infomaker?

0 Answers  


What is ceiling()?

0 Answers  


What do you mean by asa in sybase?

0 Answers  


How to manually drop a table in sybase?

0 Answers  


What are the different types of (all page) locks in sybase?

0 Answers  


How to remove row affected and dashes?

0 Answers  


Is sybase free?

0 Answers  


What is the stored procedure to view current lock and processes respectively?

0 Answers  


What is replication in sybase?

0 Answers  


Categories