Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将数字添加到 INTEGER 列?
像 UPDATE tbl SET col +? WHERE id = ?
UPDATE tbl SET col +? WHERE id = ?
第一个?是我要添加的数字
?
是否可以?
试试这个方法:
UPDATE tbl SET col =col+1 WHERE id = ?