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