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.
基本上,如果给定条目(通过其主键 ID)不存在,我想插入,否则更新。最好的方法是什么?
sqllite 没有REPLACE命令吗?或者ON CONFLICT REPLACE?
REPLACE
ON CONFLICT REPLACE
这是我将用来创建投票的片段。有没有一种简单的方法可以让这些问题在每次访问时随机出现?我想把它放在某种 PHP 或 javascript 数组中。有人可以指点我一个很好的教程来学习如何做到这一点吗?
<div id="pollWrap"> <form action="inc/functions.php?action=vote" method="post" name="poll