How to use ON DUPLICATE KEY on hsqldb 2.3.4

风流意气都作罢 提交于 2021-01-29 04:34:47

问题


According to the update on hsqldb.org listed here: http://hsqldb.org/web/features200.html

It now supports the mysql syntax ON DUPLICATE KEY in hsqldb 2.3.4, yet Im still getting sql errors when trying to run it. If im reading correctly I may need to set certain flags. But I cant find what to set to be able to use this synatx.


回答1:


MySQL compatibility is documented in the Guide http://hsqldb.org/doc/2.0/guide/compatibility-chapt.html#coc_compatibility_mysql

You need to execute SET DATABASE SQL SYNTAX MYS TRUE or the equivalent URL property sql.syntax_mys=true to enable it.



来源:https://stackoverflow.com/questions/42937669/how-to-use-on-duplicate-key-on-hsqldb-2-3-4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!