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

  • SEARCH
  • Home
  • 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

My question pertains to multi-threading in Java. I'm translating an app I wrote in
I wrote a Java program to add and retrieve data from an MS Access.
I'm trying to write a Java app that imports a data file. The process
This Java web-app I am using that other developers wrote is structured in the
Anyone know if it is possible to write an app that uses the Java
I've never done a Java Web start application before. I wrote my app's JNLP
I wrote a little Java servlet that would dynamically generate an image button given
I wrote servlet that writes an image to the root directory of my app
I'm going to need to integrate a Java application that I wrote with a
I want to write an application in Java that will communicate with Google App

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.