我正在尝试使用它将值“yes”插入到stream_number ='3'的list_title列中。我不知道为什么它实际上不会在单元格或任何单元格中插入“是”。
mysqli_query($con,"INSERT INTO livestreams (list_title) VALUE ('yes') WHERE stream_number='3'");
如果这有帮助,这是我用来创建表的 SQL
$createTable = "CREATE TABLE livestreams (stream_number INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(stream_number), stream_name CHAR(30), desired_username CHAR(30), stream_status CHAR(10), channel_description VARCHAR(300), game_name VARCHAR(100), viewer_count INT, list_title CHAR(30))";