How to rename column?

employee Table
EMPNO   EMPNAME       JOB            SALARY   PLACE
----------- ----------------     ------            ------------  -------------
1           san              employee       25000     africa

2           tan              employee       30000     Africa

3           pan              employee       35000     Africa

4           sony            employee        40000     africa
I want to rename EMPNAME as employeename,
and EMPNO as employeenum

the querry please

Thank you

Published by: 978976 on December 27, 2012 22:18

Published by: 978976 on December 27, 2012 22:19

you want to rename the columns during the term of execution of query or in the table itself?

in the case of then run time query:

Select empname as employeename, empno as employeenum of the employee;

If you want to rename the columns in the table itself then:

ALTER table employees rename column empno to employeenum;

Tags: Database

Similar Questions

  • How to rename columns

    I have a lot of tables and have to rename a large number of columns (due to data transfer that I made from sql server 200)... Is it possible to pl/sql create procedure to rename the columns of the table...

    Can be like that?

    BEGIN
     EXECUTE IMMEDIATE 'alter table table_name rename column old_col_name to new_col_name';
    END;
    
  • How to rename columns fast

    Hi all

    I am creating guests to filter a report on employment applications, and would rename the column (label) that describes the prompt.

    The column is initially called 'Employment requisition Source name status', but I simply invite him to display "Status".

    How can I achieve this?

    Of guest are what kind you referring? Prompt dashboard? This is the area of the label. Prompt Filter column? That's the legend.

    Does that answer your question? If this isn't the case, be more specific, please.

  • How to rename a column

    Hai All

    How to rename a column


    Select sysdate double

    And it displays the column as sysdate and I need to change in the Regulartime


    How to do this


    Thanks in advance

    Srikkanth.M
    entman@aepw02> select sysdate as Regulartime from dual;
    
    REGULARTIME
    --------------------
    10-MAY-2010 11:26:13
    
    1 row selected.
    
  • Rename columns

    Hi guru,.

    How to rename all the column names in the table of mutiple without having to manually edit each column name in the RPD?

    Thanks in advance.
    Naren

    Hi Naren,

    Please use rename attending the RPD. Never / utility -.

    Thank you
    Subhash

  • How to rename the bookmarks pinned to the taskbar?

    Firefox 18.0

    I have a few bookmarks pinned to the taskbar. They show the URL of the link, not the name of the bookmark. For example; in my menu bookmarks, I have a bookmark named "hotmail", but when I pin in the Firefox icon in the taskbar, it appears as https://login.live.com.

    How to rename or get it to show the same name as the menu drop-down?

    Step 1: Create a bookmark to the URL in firefox with the name you want.
    Step 2: Drag the bookmark on the desktop (it can create it with the IE icon)
    Step 3: Drag the icon to the icon of firefox pinned in the taskbar. This should pin the URL in firefox with the name. It will be useful.

  • How to rename a tab

    Windows allows me to rename a tab by right click and properties.
    How to rename a tab in FF?

    https://addons.Mozilla.org/en-us/Firefox/addon/TabRenamizer/

  • How to rename a file when you move it

    How to rename a file when he tries to move it to another directory and it already exists?
    I thought I could use a match pattern on the paths of the source and destination, because after a certain point, the path would be the same, and then with another model of correspondence I extract only the name and use a path of construction.
    I don't know if it would actually work. Can anyone give me any suggestions?
    Thanks in advance!


  • How to rename channel in VI

    Could someone explain to me in a fundamental way. How to rename channel merged in the attached VI names.

    By default, they read without title, Untitled_1 and so on. I want giving them a logical name as coil Temp, Temp of the battery etc...

    Thank you

    Why put another image when you already have one, a VI, posted in a response.

    If you insist on using to write into the file of measures and insist on having the names of channel, you must use the procedure that I linked to. At least give it a try before posting back.

  • How to rename multiple files with the extension in windows xp

    How to rename multiple files with extension in windows XP.

    1. If you want to simply rename the extension, open a run window (Windows Logo key + R), type cmd and press ENTER. Using the CD (Change Directory) command, navigate to the folder in question. Now, type ren *.mp3, *.mp4, and press enter (note the two spaces in the command). Note, rename mp3 MP4 is just an example of the command.

    2. If you want to rename files, download the 32-bit version or 64-bit Bulk Rename, here http://www.bulkrenameutility.co.uk/Main_Intro.php

  • How to rename automatic updates?

    What should I do to rename "Automatic updates"? It is cited as a partial solution to the error 0 X 80248011. I can't install the Windows updates. Can find automatic updates, I don't know how to rename. It asks me to rename C:\Windows\SoftwareDistribution but I can't. I used Microsoft Fix It and tried many other solutions, but none are successful. This change of name perhaps is the answer. I am running XP Media Center and have Service Pack 3. I have started the Background Intelligence Transfer Service, installed Windows Update Agent to address this dilemma, also erased theInternet Explorer Cache. I can't reinstall XP because I do not have the disc. It was installed by the people who sold me the computer and I don't have the disk.

    Rename the folder C:\Windows\SoftwareDistribution

    Click Start, choose run.
    In the run box, type services.msc.
    Click OK.
    Right-click the automatic updates service.
    Click on stop.
    Stopping the service will take a moment.

    Rename the folder "C:\Windows\SoftwareDistribution":
    a. Click Start, click Run, type %any and then click OK.
    b. right-click on the C:\Windows\SoftwareDistribution folder, and then click Rename.
    c. Type SoftwareDistribution.old, and then press ENTER to rename this folder.

    Click Start. Choose run.
    In the run box, type services.msc.
    Click OK.
    Right-click the automatic updates service.
    Click Start.
    Starting the service will take a moment.

    Reset (by chance)

  • How to rename arrow retrun to submit in webworks

    Am new on blackbrry webworks. Can someone help how to rename return key to submit to the keyboard using webworks...

    Thanks in advance...

    The virtual keyboard that appears when the focus is applied to an input field are you referring?  If so, WebWorks supports the HTML5 input types, which can be used to provide a contextual keyboard more appropriate to the type of input field.  Try to load the next page on your BlackBerry (can be in the browser, or inside your WebWorks app) to see the different types of virtual keyboards, you can display, depending on the type of entry:

    http://BlackBerry.github.IO/WebWorks-samples/kitchenSink/HTML/HTML5/InputTypes.html

    However, if you are referring to how to set the basic HTML input fields, usually you see a virtual keyboard 'submit' when you use

    elements.  It is a generally bad practice in app WebWorks which he calls a reload of the entire page when the user submits the form:

    
       
       
    
    

    It is best to use HTML with JavaScript, similar to this:

       
       
       
    
  • How to rename the JAD file to eclipse MIDlet name

    Hi, expert,

    at the present time, our product team asks me to change the product name of the name of one to the other, I changed the title in the properties of the eclipse project and thought that's it. Cod file name was still the same as before.

    Then I discovered that I was wrong. The name options-> list of applications is still the old name. Then I change the COD file name (the name of the JAD file is also modified with it) and thought that I would be ok this time.

    I was denied again. The name on the download of air link always displays the old name and found out that the JAD stll MIDlet-name file has the old name and browser would use this name. Options-> application list, it still shows the old name. So I have to change the name of the MIDlet-name for the new name. However, I couldn't find a way. on the descriptor xml project, there is a tag called MainMIDletName, I changed to the new name:

    However it does not seem to help as well. After research, I found this link, but it does not say exactly how do without changing the name of the project that I really don't want to do:
    http://supportforums.BlackBerry.com/T5/Java-development/how-to-rename-JAD-in-JDE-Eclipse-without-ren...

    I have a few choice here? Any help would be appreicated.

    Hello

    To have the "MIDlet-Name" of the renowned JAD property, you will need to rename the project. Output file names can be changed via the BlackBerry_App_Descriptor.xml > Build (tab) > name of the output file (field).

    Kind regards

  • How to rename tasks scheduled under win7?

    I would like to know how to rename tasks scheduled under win7

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    It can't be renamed directly, but if you export the task at any place, then re-import, it can be renamed during the import process.

    Then just delete the old task.

  • How to rename the HFM web form

    Hi all

    How to rename the HFM web form

    Thanks in advance

    Concerning

    Satheesh.s

    Hello

    Unfortunately, you cannot rename a form online.

    In order to change the name of an existing one, you need to:

    • Save the existing one with a different name
    • Remove the previous and start using the new

    See you soon,.

    Thanos

Maybe you are looking for

  • How can I configure a letter in thunderbird.

    When I copy my letter in mozilla, that it extends from left to right. I want to be able to set the beginning and the end of the areas.so that it looks like a letter and not a large surface overall spend. I tried using some of the tools but can not un

  • Search can't compare with the number to decimal

    Hi all you have a problem with 'Find '. I want to create an application that works average as mobile. So I take the Arith. Average of 30 blocks zaeler1 = zaeler1 + 1 zaeler2 = zaeler2 + 1 statsel (6) = 'Yes '. Call StatBlockCalc ("Block", zaeler1 & "

  • 6008 OR increase the resolution by limiting the beach?

    Hello I wonder it is possible to increase the resolution of the 6008 OR by limiting the range in the labview software?  For example, if I put it at 04:55 V instead of-10 to 10 V I then get 10 /(2^12) increments as opposed to resolution 20 /(2^12)? Th

  • KB970892 FAILS TO INSTALL 7358 ERROR CODE

    UPDATE of SECURITY FOR SQL SERVER 2005 SERVICE PACK 3 (KB970892) fails to install. All I get is error CODE 7358. I tried to turn on all SQL servers but two refuses to start giving me several error codes. Both are SQL SERVER ACTIVE... ERROR CODE 10737

  • Country code being added to the text to send blackBerry Q10

    When you send a text to some contacts, I get an error message indicating the invalid number. 86 numbers have been added to my phone number. For example, let's say the number is 7749771234, so phone to send to 867749771234, I checked and updated my co