Modifying data in a Sybase column |
|
If you have a rolodex file, and someone moves, you don't want to delete the information you have on them, then re-type all their information with the new address, you just want to change the address. Here's how to modify data in a table.
At the end of each command press the space-bar or press enter before continuing the next step.
update
set
=
where
go
and press Enter.
If everything goes well, you see
(1 row affected)
then the database prompt (a period, the name of the database you
are using, another period, the number one and then the greater
than symbol).
If you see
Msg 207, Level 16, State 2
Server '', Line 1
Invalid column name 'name'.
you typed an invalid column name.
If you see
(0 rows affected)
your search command didn't find any matching data to change.
|
Maintained by John Shipman, john@nmt.edu;
original by Steve Anderson
Last updated: 1997/06/23 23:09:40 UT URL: http://www.nmt.edu/tcc/help/db/sybase/mod_col.html |
|