答案 0 :(得分:1)
在id的属性中添加'auto_increment'并且:
INSERT INTO
table_name (user_id, value, time, category)
SELECT
user_id, value, time, category
FROM
table_name
WHERE
id = 330;
如果需要修改表:
ALTER TABLE table_name MODIFY id INT AUTO_INCREMENT PRIMARY KEY