2016-06-07 105 views
-2

我有一個SQLite數據庫文件(* .db),我想刪除第一行,因爲它包含標題。我該怎麼做呢? 我的表看起來像這樣:在sqlite中刪除一行

"#RIC" "Date[L]" "Time[L]" "before_or_after" "announcement_time" "window" "BAS" 
"#RIC" "Date[L]" "Time[L]" "before_or_after" "announcement_time" "window" "BAS" 
"AFI.AX" "20120203" "09:56:00.000" "before" "10:27:00" "-1860" "-0.0697674418604651" 
"AFI.AX" "20120203" "09:56:05.000" "before" "10:27:00" "-1855" "-0.0697674418604651" 
"AFI.AX" "20120203" "09:56:10.000" "before" "10:27:00" "-1850" "-0.0697674418604651" 

非常感謝您

回答

1

假設沒有「真正」的行可以在其列值中的一個,過濾器上有列名:

DELETE FROM MyTable WHERE "#RIC" = '#RIC';