How to find if a column name is a reserved keyword across various databases

前端 未结 4 1919
滥情空心
滥情空心 2021-01-18 14:28

We have a legacy schema file which has the following column names, would like to understand if any of them would cause an issue if we port our application to h2, mysql, post

4条回答
  •  天命终不由人
    2021-01-18 14:57

    I am not aware of any tables but it should not be difficult to filter them if you have the list of table names and column names.

    Oracle has a V$RESERVED_WORDS view in its data dictionary.

    All you have to do is to match your table/column names against this: Just add them to temp table and join with tis view. If you have a result for your query then you have a reserved word.

    Other databases may have such metadata as well.

提交回复
热议问题