In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Ex.: there is a need to replace date 20170599 in a batch of order numbers with a new date 20180699
Before modification:
Select * from ICStockBill where FBillNo like 'WHFC201705%' order by FBillNo
Results:
FInterID FDate FBillNo
209234 2017-04-30 00 WHFC201705990001 00.000 WHFC201705990001
209235 2017-04-30 00 WHFC201705990002 00.000 WHFC201705990002
209236 2017-04-30 00 WHFC201705990003 00.000 WHFC201705990003
209237 2017-04-30 00 WHFC201705990004 00.000 WHFC201705990004
.
209239 2017-04-30 00 WHFC2017059900999 00.000 WHFC2017059900999
After modification
Use the replace function:
Format: repalce (field name, value to replace, new value after replacement)
If you replace a specific value, you can replace the field with the corresponding value, or specify it by condition.
Update ICStockBill set FBillNo=REPLACE (fbillno,'20170508','20180510') where FBillNo between 'WHFC201705080001' and' WHFC201705089999'
FInterID FDate FBillNo
209234 2017-04-30 00 WHFC201806990001 00.000 WHFC201806990001
209235 2017-04-30 00 WHFC201806990002 00.000 WHFC201806990002
209236 2017-04-30 00 WHFC201806990003 00.000 WHFC201806990003
209237 2017-04-30 00 WHFC201806990004 00.000 WHFC201806990004
.
209239 2017-04-30 00 WHFC201806990999 00.000 WHFC201806990999
In order to achieve this function, Baidu also did not take detours, specially left this article, only for the record, hoping to help people in need.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.