How to create two auto increment column in mysql?

前端 未结 6 1935
谎友^
谎友^ 2020-12-22 05:14
CREATE TRIGGER test1 AFTER INSERT ON `course_metadata_31`
 FOR EACH ROW BEGIN
 update `course_metadata_31`set `articleID`=`articleID`+1
 END;

I am

6条回答
  •  孤城傲影
    2020-12-22 05:36

    in the phpMyAdmin set the column property to AI its a tick box on the table structure. you dont even need to pass the details to the database

提交回复
热议问题