有條件更新表中的數據時,條件怎么輸入?
在有條件更新表中的數據時,如條件設定為:where student_name= 空,也就是說我的學生名字字段中沒有寫名字的行;另外一種就是我的表中where ?regdate=系統時間,這個系統時間我在輸入時怎么來寫,如果系統時間顯示為:03-6月 -16
在有條件更新表中的數據時,如條件設定為:where student_name= 空,也就是說我的學生名字字段中沒有寫名字的行;另外一種就是我的表中where ?regdate=系統時間,這個系統時間我在輸入時怎么來寫,如果系統時間顯示為:03-6月 -16
2016-06-03
舉報
2016-06-05
update student set student_name='pull' where regdate='';
2016-06-04
第一個問題語句這樣寫:update table_name(表名) set student_name = '空';
第二個問題語句這樣寫:update table_name(表名)set regdate=sysdate;。