Change the number to varchar DataType

Hello

I need to change the data type for a column (from the number on the varchar type), it is an existing table so data are there.

I'm runnning modify the command to do it, but he asked me to do all null values before treatment.

Is it possible to do without any null values.

In my view, a solution is

(1) to get the data copied to another table, make the NULL column and change... load the data back at the table

It is the only option?

Hello

First of all, make sure that you really want to lose the NUMBER column.  Why you change the column?  "" For example, if the column is temperature, and you change it so that you can enter values like ' 68 F ' or ' 20 C ', then perhaps you should allow the temperature of the column as a NUMBER and add a new column, temperature_scale VARCHAR2 (1).  (Better yet, convert all temperatures to a comments system, possibly with a trigger or a virtual column and save the original measurment, like ' 68 F"in a separate column, if you really need to know how it was entered.)

Because you really need to change to a VARCHAR2 column, then one of the ways is

(1) adds a new column VARCHAR2

(2) fill in this column of the existing NUMBER column

(3) add a NOT NULL constraint in the new column (if necessary)

(4) delete the original column NUMBER

(5) change the name of the new column to the original column was (if desired)

If you deposit the entire table, then you lose all its indexes, triggers and subsidies.  If you come to add and remove columns, you do not lose these things.

Tags: Database

Similar Questions

  • Setting to change the number of days to sync e-mail

    Where the parameter move to if you want to change the number of days that will be synchronized to your e-mail accounts? Or he is let out iOS 10 for some reason any?

    vrmcw wrote:

    Where the parameter move to if you want to change the number of days that will be synchronized to your e-mail accounts? Or he is let out iOS 10 for some reason any?

    account settings - sync mails - 'Exchange' on my phone - spam day-

    Not an ios 10 issue that I don't have the function to my yahoo account.

    Maybe you should ask your email provider.

  • How to change the number of minutes for the exercise of the activity of the application

    How to change the number of minutes for the exercise of the activity of the application

    Hello

    It is not currently possible to change the goal of daily exercise.

    If you want to suggest that Apple consider adding this option, you can submit a request here:

    https://www.Apple.com/feedback/watch.html

  • Cannot change the number of laptop Apple ID because I moved from the India

    I can't change the number of mobile for notifications in my Apple/iCloud account, it shows my old Indian number but I moved from the India and now Iam in Tanzania. He asked security questions that I don't even remember...

    I can not yet implemented iCloud keychain...

    Need help, he cannot set up on my Mac, the iPhone or iPad

    You can change preferences/iCloud/Keychain/options of the system?

  • How to change the number of tabs pinned when I open a new tab?

    Before today, I have easy access to 8 tabs pinned on my page tab and now I have only 4 and I can't change it back. What was changed and how can I change the number of pinned tabs?

    "What was changed and how can I change the number of pinned tabs?"

    The css for the margins and tiles has been changed. Try Zoom Out = {Ctrl liked-} to see more tiles. I need zoom back twice to get a 2nd rank.

    Or use this extension - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - for more control on what is and what is not displayed on the new tab page.

  • Display the icon change the number of columns

    I'm sure it must be a way to change the number of columns in the display icon, not the space between columns, not the size of the icons, but the number of columns, for example, that dumpster has 4 columns and I want to see those hidden on the right I have to use the scroll bar, I want to do I want to see ONLY for columns of the filling finder window?

    Thank you very much

    Roger

    "BTW that seems to only happen when I consult with ANY ' arrange by" or "sort by"!

  • Change the number online

    Is it possible to change the number online, which form the part of my unlimited subscription pack Europe, I don't see any button to do.

    Hello-

    If you have an account, you can get the chat support.

    1. go to support.

    2. click on 'get help'

    3. Enter your question

    4. click on 'get help' (new)

    5. connect and follow the instructions

  • Can I change the number of stars available in the ribs?

    I implemented in my spreadsheet the coast to stars, but the default number of stars is a 0-5 scale.  I can change it to have only a 3-0 stars?

    I don't know a way to change the number of stars.  You can use a Stairmaster or a cursor

  • I changed my phone number, but I can't update the 'ACCESSIBLE AT' number on my Apple ID account Please can someone explain how I can change the number of 'ACCESSIBLE AT', to update my account with my new number?   Thank you.

    I changed my phone number, but I can't update the 'ACCESSIBLE AT' number on my Apple ID account Please can someone explain how I can change the number of 'ACCESSIBLE AT', to update my account with my new number?

    Thank you.

    Try going into settings > FaceTime and turn off FaceTime. Then go to Messages and turn off iMessage.

    Turn off your phone and then new.

    RETURN to FaceTime and turn it on again, even with iMessage. He has to try to reactivate and your new number should appear (you can see this more down in the addresses to send & receive). You may need to log into your Apple ID for this operation.

  • Dynamically change the number of sub-panels

    Hello

    I have a computer where usually 4 testplaces of production are connected to.

    I want to have a main VI indicating the status of the 4 different testplaces, that I can do with 4 separate sub-panels - no problem.

    The issue is that I would be flexible in testplaces how I show in a program (as this hole thing is pretty cool, and I expect that some changes will come). Is it possible to dynamically change the number of sub-panels displayed (other that make it twenty of them and turning off then those you don't need)?

    My first idea was to place the school in a table, but unfurtunately is not possible.

    Best regards

    Frank

    Yamaeda wrote:

    The POP in separate windows, and you can have as much as you want.

    Or make separate them windows, and then set up a child-parent relationship in Windows, it seems as if it was all about a user interface.

    http://screencast.com/t/P9SJ1anR

    It's nice enough for the demo beta like software, but works.

    https://lavag.org/topic/17046-multi-panel-interface/

  • How to change the number of items in number to Boolean, function VI table

    Hi, I'm working on using the digital output of data acquisition to control the digital input of a DAC, and I used the Number function in Boolean table. VI to convert the number to a Boolean array. The maximum number is 4096, so it must be composed of 12 elements.

    For the description of the VI, it is said that Boolean matrix returns a table of 8, 16, 32 or 64 elements, according to the number of bytes in the whole. Therefore, I change the number of channels in the task to 16, but it still does not work. The suggesitions are greatly appreciated.

    Thank you!

    Possible reasons:

    Scripture cannot be performed because the number of data channels does not match number of channels in the task.

    When writing, provide data for all channels in the task. You can also change the task so that it contains the same number of channels as the written data.

    Number of job channels: 12
    Number of data channels : 32

    Task name: _unnamedTask<1B>

    Once you have the array of Boolean, you can resize using table tools. For example you can use the "new range" with a length of 12 to pad the table of 12 elements of Boolean values (you can also use a subset of table).

  • Change the number of items in the drop-down list box when running

    I'm trying to change the number of items in one of my boxes of comobo.

    I have been through the help and this forum and have the values to within the drop-down list box change very well, but in a scenario, I want to go to three options for 2. And according to other choices to 3.

    I guess I have to use a property node but I can't understand that one.

    You can use the method to reset to zero (using an invoke node) before setting the [Strings] (after setting the value by default an empty array) or create an Xcontrol (you can see examples of LabVIEW for xcontrol).

    Ben64

  • How can I change the number of seconds in the view as slideshow in Windows XP?

    I would like to change the number of seconds when look at a photo in a slideshow... How can I do this?

    The following method will adjust the slideshow 'time by image '.
    for Windows XP...

    Download and install free Windows XP PowerToy "TweakUI".

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Windows XP downloads
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-XP
    (Search for TweakUI featured downloads tab)

    When you have downloaded and installed TweakUI... open and
    in the left pane. Expand the Explorer (left click the +) and select (highlight)
    Slide show.

    Change the number to all what you need... then on the left, click apply / OK.
    For example... 5000 = 5 seconds.

  • Change the number of sequence on a created cryptomap

    Hello

    I have a doubt regarding the sequence number of a crypto map.

    Now, I have a card encryption I'd like to do with lower priority (put a higher sequence number). There is currently 1 and and want to 3.

    To do this, I had to remove the card:

    No crypto map Internet_map0 1 1.1.1.1 ipsec-isakmp dynamic (it's a site 2 site vpn but with dynamic extrems)

    Next, I add a new card encryption with the desired sequence number:

    card crypto Internet_map0 3 ipsec-isakmp 1.1.1.1 Dynamics

    Is posible change the number sequence without first remove encryption card?

    Thanks to all and sorry for my English.

    Hello

    No there is no way to just change the sequence number, you will need to follow the procedure that you did the moving the map encryption for a different number of position or sequence.

    Best regards, please rate.

  • BlackBerry smartphones change the number of rings before going to voicemail BB8830

    Hello

    Is there a way to change the number of rings before that switches phone to voicemail? It seems to me miss a lot of calls, especially now with winter clothing.

    It takes time for unfumble the BB out of the Holster with several layers of clothing...

    Thank you

    Lubo

    Thanks for the pointer.

    I found the rest of reference to the website of Bell Mobility (Canada), that solved my problem:

    How can I choose the number of rings before the center of messages or no answer transfer picks up?

    To set the number of rings before messages or center of the Express Message Centre picks up, follow these steps:

    From your mobile phone, press on * 94, followed by the number of standard rings you would like that your callers hear before display se pick up; This can be between 2 and 9. (For example * 942 to 2 rings)

    1. Press SEND or TALK
    2. If the change is successful, you will hear a confirmation tone. If the change was not successful, you will hear a fast busy signal; Repeat steps.

Maybe you are looking for