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.
| Author |
Topic |
|
hungleon88
Starting Member
16 Posts |
Posted - 2008-07-30 : 08:09:21
|
| how can i display the updated record ???example :update Toysset UnitPrice = UnitPrice + 10 where UnitPrice > 20how can i return the records are updated?Help plzzz!!! |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-07-30 : 08:11:52
|
| Select UnitPrice from ToysWhere UnitPrice > 20MadhivananFailing to plan is Planning to fail |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
hungleon88
Starting Member
16 Posts |
Posted - 2008-07-30 : 08:23:47
|
| sorrythe UnitPrice column have some records like:201015305after updated2020253015how can i get record of 20(2) , 25,15 ??? |
 |
|
|
hungleon88
Starting Member
16 Posts |
Posted - 2008-07-30 : 08:25:32
|
| set UnitPrice where UnitPrice < 20 , soryyyyyyyyyyyyyyyyyyyyyyyyyi have try :update Toysset UnitPrice = UnitPrice + 10output inserted.UnitPriceBut i can't use where clause in UnitPrice + 10 (where UnitPrice <20) |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-07-30 : 08:41:15
|
Do you read the replies? All of them? E 12°55'05.25"N 56°04'39.16" |
 |
|
|
hungleon88
Starting Member
16 Posts |
Posted - 2008-07-30 : 08:47:06
|
quote: Originally posted by Peso Do you read the replies? All of them?Yes....i read all E 12°55'05.25"N 56°04'39.16"
|
 |
|
|
hungleon88
Starting Member
16 Posts |
Posted - 2008-07-30 : 08:56:59
|
| oh thanks all for help, i found it!! |
 |
|
|
|
|
|