Omit schema in the DERBY Query

前端 未结 1 1110
-上瘾入骨i
-上瘾入骨i 2020-12-11 19:20

I have created a database named \'movie_db\', set default schema to APP. Then created a sample table named \'USERS\'.

My connection to DB is as follows:



        
相关标签:
1条回答
  • 2020-12-11 19:49

    There are basically two ways to control the default schema name:

    1. Issue the SET SCHEMA statement after you have connected to the database.
    2. Login as the user with the same name as the schema you wish to use.

    If you haven't issued a SET SCHEMA statement, then Derby will use your username as the schema name.

    So if you login as user "APP", and don't issue a SET SCHEMA statement, then your schema name will be APP.

    0 讨论(0)
提交回复
热议问题