Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Old Forums
 CLOSED - General SQL Server
 need query plz

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-09-28 : 07:24:55
Maher writes "dear sir's

in tables i have one table for items , in this table there is wrong data in on column so i need to replace this column and insert anather with new data.

plz how can i do?

thank for all team

Maher"

nr
SQLTeam MVY

12543 Posts

Posted - 2004-09-28 : 07:34:08
Can you give an exmple of what you want to do.
You can drop a column by alter table tablename drop column colname
And add a new one by alter table tablename add colname datatype

or you can use an update statement to change the contents.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2004-09-28 : 07:34:09
Can you give an exmple of what you want to do.
You can drop a column by alter table tablename drop column colname
And add a new one by alter table tablename add colname datatype

or you can use an update statement to change the contents.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -