UPDATE犯迷

select  * from  T_CONVERT where  businessid='423'   and  convert_time>20101001000000 and  convert_time<20101007240000  
select * from T_CONVERT where businessid='423'  and convert_time>20101001000000 and convert_time<20101007240000

 

查詢出結果後要對一些特定的列進行修改,當時犯迷的地方是:認爲不能根據將要修改的字段更新此字段

 

update t_convert set subbusiness_id =505 where subbusiness_id =506  and convert_time>'20101001000000' and convert_time<'20101007245959'

發佈了15 篇原創文章 · 獲贊 1 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章