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
You need to remove the affected rows and dashes. How would you do that?
How to change varchar(m) to varchar(n) in sybase?
Must I use multiple devices to take advantage of partitions in sybase?
How do I turn off marked suspect on my database in sybase?
Does sybase support row level locking?
Explain the advantages of data integration suite in sybase.
Explanation about replication server software?
How can I improve throughput in sybase?
Who owns sybase?
Explain timestemp datatype in sybase.
How to delete unix files which are more than 3 days old?
How do I configure identities in sybase?
List the types of locking?
Does table partitioning require user-defined segments in sybase?
Can two tasks be assigned to the same partition in sybase?