說明:
1.更改某個欄位設定其值為’xxx’。
2.conditions 是所要符合的條件、若沒有 where 則整個 table 的那個欄位都會全部被更改。
。、刪除資料:
delete from table_name
where conditions
說明:刪除符合條件的資料。
說明:關于where條件后面如果包含有日期的比較,不同數據庫有不同的表達式。具體如下:
(1)如果是access數據庫,則為:where mydate>#2000-01-01#
(2)如果是oracle數據庫,則為:where mydate>cast(’2000-01-01’ as date) 或:where mydate>to_date(’2000-01-01’,’yyyy-mm-dd’)
在delphi中寫成:
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/