Skip to Main Content

NoSQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to reference a nested field when the admin want to add a new field within the existing field

Eric JingDec 16 2022

Dear sir,
I'm making some test on oracelnosql, and I have a table like this:
CREATE TABLE if not exists companyTable
(
companyid integer,
teams map(array(userid integer, firstname string, lastname string))
primary key (companyid)
)
And, above table already created in my oracelnosql db.
Now, I want to add one more sub field within the nested field teams, to make the table finally look like this:
CREATE TABLE if not exists companyTable
(
companyid integer,
teams map(array(userid integer, firstname string, lastname string, salary integer))
primary key (companyid)
)
So, how can I reference the nested field? I have tried several times but I field:
alter table companytable (add teams.values().salary); //failed
alter table companytable (add teams.values()[].salary); //failed

If I cannot update the table definition, it means I have to delete the table along with the data and create the companytable again, which means db data is removed during maintaince(impossible in real life).
Could you give me some tips of how to reference above nested field to add the sub field "salary"? Thank you so much.

Comments

chonewell Nov 12 2024

My Oracle Cloud tenant, cloud account, and secure email have no issues. Why haven't I received my password reset email for Oracle Cloud? This is very strange, and our attempts have not been able to solve the problem. May I ask who I should turn to for help?

L. Fernigrini Nov 12 2024

If your account is a paid one, open a Support ticket.

If it is a Free Tier then you will have to rely on help from the community. Most probable cause that you did not receive the password reset email is that your account has been stolen and the email has been changed.

chonewell Nov 13 2024

Thank you for your reply!
But when I chatted with the online customer service, they told me that my Oracle Cloud tenant, account, and email were all fine. So, there shouldn't be a problem of theft.
I have a free account, but who can I contact on the forum? I can only post, but no one on the forum can view my account permissions, right. I am currently trying to reset MFA, I don't know if it works.
It's quite ridiculous that I have a free account and can't enjoy any services, but how can I become a paid user if I can't log in to my account.

1 - 3

Post Details

Added on Dec 16 2022
9 comments
356 views