需求庫is_reserved_planning和last_reserved_planning狀態字段爲中文的刷新

select * from npas.de_cover_point where is_reserved_planning !='0' and is_reserved_planning !='1' and is_reserved_planning !='2' and is_reserved_planning !='3'


and last_reserved_planning !='0' and last_reserved_planning !='1' and last_reserved_planning !='2' and last_reserved_planning !='3';





update npas.de_cover_point set is_reserved_planning='0' where is_reserved_planning='需求庫';

update npas.de_cover_point set is_reserved_planning='1' where is_reserved_planning='儲備庫';

update npas.de_cover_point set is_reserved_planning='2' where is_reserved_planning='規劃庫';



update npas.de_cover_point set last_reserved_planning='0' where last_reserved_planning='需求庫';

update npas.de_cover_point set last_reserved_planning='1' where last_reserved_planning='儲備庫';

update npas.de_cover_point set last_reserved_planning='2' where last_reserved_planning='規劃庫';

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章