Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 664783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:38:15+00:00 2026-05-13T23:38:15+00:00

i wrote a java app that communicates and stores data in oracle; my question

  • 0

i wrote a java app that communicates and stores data in oracle; my question is how do i clear entered information from individual columns in oracle? for example, say i have a following table:

create table example (id integer, name varchar(50), surname varchar(50));

and it contains current information, how do i then clear individual columns, but keep the rest intact? For example, what if I wanted to clear name and surname columns, but leave id column intact, how would i go about doing that?
I tried by creating a new table and just copying the id column and then creating name and surname again from scratch like so:

create table example1 as select id from example

and then issuing the alter table command to add name and surname. Seems a bit redundant but there must be an easier way,

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:38:15+00:00Added an answer on May 13, 2026 at 11:38 pm
    UPDATE table SET name='', surname='' WHERE ...
    

    or

    UPDATE table SET name=null, surname=null WHERE ...
    

    Of course, you’ll need to make sure your table’s constraints allow these values.

    This sounds like an odd thing to do though, rarely in an application do you need to do something like “Take ever single user/customer/account we have and erase their firstname from the datastore”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This Java web-app I am using that other developers wrote is structured in the
I managed to programm an app that communicates with a server. I can write
I am learning Swing and wrote an app that lets user select an image
I wrote an iPhone app some time ago that creates sound programatically. It uses
i have wrote an app getting rss feed from the website of my university.in
The app I am developing has many activities organized into seven java packages. Originally
Is it possible in Java to create a static factory method/class that uses an
I am trying to create a trial version of an app i wrote. I
I am working on a little test app to scrape some data (in this
I need to write a web-aplication that connects to database and reads connections properties

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.