我想添加多行表/列註釋。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機器上運行,但沒有任何工作) –