What query should be used to change the username of H2 database in embedded mode with JDBC? I need to update the username with the input string from the user.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Use this query Note:The password will become invalid when the user name was changed
alter user "+username+" rename to "+newusername+"//alter username
alter user"+newusername+" set password '"+password+"' //alter password