老孟大梦 发表于 2019-07-18 13:42

求助:字段添加注释

想生成一个informix数据库,到处都找不到类似于COMMENT ON 这样的生成字段注释的SQL文,向各位高手求助。

老孟大梦 发表于 2019-07-22 11:04

不知道是没有这功能还是大家都不知道。

大梦 发表于 2019-08-12 15:30

按下面的方法试试,看看有没有COMMENT ON 语法
Create Comment
COMMENT ON < SCHEMA >.< TABLE > ( IS '< this is a comment >')

Update Comment
Use the same command to define a new comment at the same column


COMMENT ON < SCHEMA >.< TABLE > ( IS '< this is a comment >')

Remove Comment(Put two simple quotes without space)
COMMENT ON < SCHEMA >.< TABLE > ( IS '')

liaosnet 发表于 2020-03-02 10:36

看你的数据库版本。12.10及之前是没有comment的语法~
页: [1]
查看完整版本: 求助:字段添加注释