Is it possible to create auto increment id column in mysql view?

后端 未结 4 1747
南笙
南笙 2021-01-18 10:04

I have created a view in MySql. But now my requirement is to create an Id column in that view which should be auto increment.

My current view is:-

CR         


        
4条回答
  •  耶瑟儿~
    2021-01-18 10:42

    You can USE the "UIID()" function that will provide you with an unique (alphanumerical) identified.

    Check this out: https://stackoverflow.com/a/45963661/6083044

提交回复
热议问题