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.
为什么这会在底部使用此数据创建一个新行,而不是修改该指定行?
$sql = " UPDATE products SET productName = '$pname', productDescription = '$pdes' WHERE pID = '$pidmod' ";
WHERE pID='$pidmod'是自动增量字段。
WHERE pID='$pidmod'
UPDATE语句不会添加行 -除非涉及触发器。
UPDATE