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
What is the use of 'with check' option in views?
A single operation is failing to escalate?
Explain coalesce. What is the equivalent of oracle/db2 coalesce function in sybase?
List different types of sybase index.
Who owns sybase?
How to check if sybase database is up and running?
Can I run any transact-sql command on a partitioned table in sybase?
Explain the advantages of data integration suite in sybase.
What is server replication?
How do I open a sybase database?
How do I force an index to be used in sybase?
How can I tell the datetime my server started?
What command helps you to know the process running on this port, but only su can run this command?
How to connect to sybase database from linux?
Differentiate between db-lib and ct-lib?