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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain asa, asa ultralite.

808


Is sybase a database? Explain.

903


How do I correct time slice -201?

865


Tempdb is full. How would you clear it?

835


What is replication server in sybase?

773


What command helps you to know the process running on this port, but only su can run this command?

842


How do I create a database in sybase central?

841


How do I pipe the output of isql to a file in sybase?

808


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

826


How would you list objects in sybase?

909


What are the important features of sybase?

899


How do I capture a process s sql in sybase?

900


Is sybase free?

786


You need to add a notnull column in a table by using alter command (without using default command). How would you do that?

866


Explain sybase sql server?

882