我想添加多行表/列注释。Oracle SQL添加多行表注释或列注释
通常这是使用;
COMMENT ON TABLE USERS IS 'User table has the user data'
我需要的是一种方法来插入单引号内的新行;
COMMENT ON TABLE USERS IS 'User table has the user data <smthg_here_for_new_line> 1- Name column has name <smthg_here_for_new_line> 2- Number Column has the id'
因此,表中的评论将被视为像;
User table has the user data
1- Name column has name
2- Number Column has the id
任何人都知道如何添加多行表/列注释?
我试过了,并得到下面的错误。我将它作为单个SQL语句在TOAD上运行,错误如下所示; COMMENT ON TABLE USER IS'User table comment1 here'|| chr(10)|| '这里1 - 用户表subcomment' 在行 错误1 ORA-00933:SQL命令不能正确地结束 –
而且,无论是CHR(10),也不CHR(13)工作(一开始我尝试CHR(10),因为Oracle服务器在* nix机器上,然后我尝试了chr(13),因为我通过TOAD软件尝试它,该软件在Windows机器上运行,但没有任何工作) –