I am running my query, but it does not work. The cause is the value of column is null and I'm trying to update it with a integer value.
This is my query.
The default value of sdoc
is null
update expenese
set sdoc = sdoc + '200'
where expenese.date = '2016-03-26';
UPDATE EXPENESE
SET SDOC=ISNULL(SDOC,0)+200
WHERE DATE='2016-03-26'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.