Are there any SQL Validators that can check syntax against multiple database servers?

后端 未结 4 1301
执笔经年
执笔经年 2021-01-04 00:59

Are there any SQL Validators that can check syntax against multiple database servers?

For example, I might want to check whether a particular query will work against

4条回答
  •  一生所求
    2021-01-04 01:34

    I'm not aware of any that are that specific, these will check that the statements are valid ansi 92/99/2003...

    http://developer.mimer.com/validator/index.htm

    That will get you 99% of the way there (especially if are only doing CRUD operations)

    maybe if you know which reserved words are used by which database you could roll your own simple checker.. see : How to find if a column name is a reserved keyword across various databases

    (as already mentioned) If your goal is to create a database agnostic system think about using a third party tool e.g: entityspaces

提交回复
热议问题