数据更新的方式与插入一致,如下:
let stmt = conn.prep("UPDATE Dbname SET data = : data WHERE id = : queryid").unwrap();
let res = conn.exec_drop(&stmt, params! {
"data" => data,
"queryid" => id
}).unwrap();
数据更新的方式与插入一致,如下:
let stmt = conn.prep("UPDATE Dbname SET data = : data WHERE id = : queryid").unwrap();
let res = conn.exec_drop(&stmt, params! {
"data" => data,
"queryid" => id
}).unwrap();