Create comments for views in mysql

后端 未结 3 1479
北恋
北恋 2020-12-09 16:05

I see that the views have a comment field just like the regular tables, but is by default populated with the \"VIEW\" value.

[TABLE_CATALOG] => 
[TABLE_S         


        
3条回答
  •  再見小時候
    2020-12-09 16:11

    According to the create view syntax there is no way currently to add comment a view:

    • http://dev.mysql.com/doc/refman/5.7/en/create-view.html

    This feature has been requested several times. There are four active tickets related to this functionality:

    • http://bugs.mysql.com/bug.php?id=5159
    • http://bugs.mysql.com/bug.php?id=64045
    • http://bugs.mysql.com/bug.php?id=52429
    • http://bugs.mysql.com/bug.php?id=15344

    ...and several marked as duplicates: http://bugs.mysql.com/bug.php?id=19602 , http://bugs.mysql.com/bug.php?id=19602 , http://bugs.mysql.com/bug.php?id=13109 , http://bugs.mysql.com/bug.php?id=14369 , http://bugs.mysql.com/bug.php?id=11082 , http://bugs.mysql.com/bug.php?id=42870 , http://bugs.mysql.com/bug.php?id=38137 , http://bugs.mysql.com/bug.php?id=38137 , http://bugs.mysql.com/bug.php?id=30729

    If you are interested in this issue, go to the four active tickets, click the "affects me" button, and also add a comment, asking if anyone is working on this feature.

    This will add visibility, and increase the likelyhood of it being implemented.

提交回复
热议问题