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.

Tags: Database

Similar Questions

  • I need to rename a column for a tabular presentation

    How to rename a column, I created for a tabular presentation?

    I added a new column to a tabular presentation (using 'add a new link in the column') and he gave me a name of column, called "link column. I tried to change, but it does not - note: I can't change a sql column does not exist outside Apex - I created it for the display of a calculation.

    I don't know that it can be done as I did before.

    change the column name photo columnnamechange.png

    Does not change the name of  photo colunnamechange.png so cannot reference in my calculation

    Well, I found a way to do it anyway. This should be changed in the definition of region > source.

  • 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 and delete a particular column in a table?

    Hello

    Suppose I have a table with the following defination:

    create table t1
    (a number not null,
    b varchar2 (20).
    c varchar2 (20));

    eventually I want to rename the column b to x and the next step I want to remove column c and all of its contents. How to do this?

    Hello

    To copy the column b: column a

    UPDATE  t2
    SET     b  = a;
    

    To drop a constraint:

    ALTER TABLE  t2
    DROP CONSTRAINT  on_b;
    
  • 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;

  • 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;
    
  • Warning message before you rename a column

    Hi gurus,

    I need your suggestion. I am desiging a module to move data from one table to the schema of intermediate archives and then delete intermediate tables, such as each table has it's own rules to keep history (some of them need 2 weeks, 1 month etc) and deleting based on reporting_date for some tables, rpt_dt other reporting_dt other and so on... (inconsistent naming). Because most of the tables is not partitioned, I have to do in the conventional way of copying the data and then remove. (Speaking of ~ 100 tables, data to remove from 100K to 1 million)

    My plan is to create a table as follows, which highlights each table name and field based on which remove will

    Table of correspondence:

    KEYSOURCE_TABLEFIELDNAMESTARTEGYKEY
    1000T1REPORTING_DATE1
    2000T2RPT_DT1
    3000T3RPT_DT2

    Strategy table:

    STRATEGYKEYSTG_KEEP_DAYSCOMMENTS
    114Default option
    230Keep the last 30 days

    My question is I want to create an alert so that if a developer RENAMES the RPT_DT of the RPTDT column in table T2, it must either refuse the user until it changes the above new domain name mapping table entry. Otherwise refuse, at least draw the attention of the user. How do I get it? I was curious to know if there are new techniques in versions of oracle 10 g / 11 g (mine is 11 g) apart from old techniques I could think

    (1) create a level trigger statement for 100 + tables on the field of Reporting_dt/Reporting_date/RPT_Dt, such that the error is thrown in the exception block (this could slow down the load ETL). Difficult to maintain.

    (2) handle reactive IE perform a daily check to see if a field name in the mapping table exists in all_tables.

    I learned a lot of new techniques in this forum where many new features have been introduced by oracle, or others had a cleaner and better how to implement their experience practice.

    Thank you

    Sunny

    I do not understand how your statement-level trigger approach would work.  Rename a column is DOF, no DML, the ALTER TABLE that rename the column don't trigger a DML trigger.  Level trigger statement that try to validate the structure of the table to the data you're now would place a huge burden and would not raise an error up to this than potentially long after that the disturbing change has been made.

    I guess you can create a DDL trigger that took place when a user has changed the table who tried to validate the DDL against the data in the table (probably using ora_is_alter_column and ora_is_drop_column functions).  That could probably be put into work, but you should always remember to change the data in your table and then run DDL on your table, and not the reverse.

    A DML trigger on your mapping table that checks if the data in your mapping table corresponding to the table definition would be easier to write.  But you would be once again be capture potentially long errors after a rogue DDL statement was executed.

    You could get even more esoteric using something like water course to post the DDL changes and write a subscriber process may change your mapping table or triggered some kind of alert if there was a disconnect.  If you are the Subscriber for a little delay, you could give time for the LMD to the mapping table (most likely) would have completed to make coherent whole before validating the DDL.

    If you are looking for a technical solution, however, I will do as you no matter what time you want to make sure that coherent sets of changes are made - would create a stored procedure that combines some DOF and you want to allow and prevent people from having the possibility to issue direct DDL statements of the DML changes.  If your procedure is written correctly and is the only way to do this kind of manipulation, you should be able to track changes in sync (except for cases where the procedure was partially successful because engages in the DDL and mistakes elsewhere).

    In reality, however, this is not a technical problem if you probably don't want a technical solution.  Rename a column isn't something that would be never done willy nilly.  This is something that should be done as part of a change of control.  This change of control should be considered at least two beings who can catch stupid things.  That change control should be accompanied by tests that validate things like the ability of your process to ETL, data in the mapping table corresponds to the definition tables.  This change of control should be tested in environments below.  At the time wherever a change is ready to be deployed to production, you should be fairly confident roughly that the definition of the table will match the data in your mapping table.  A process-based solution would make me much more comfortable than a technical solution to this kind of question.

    Justin

  • 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 fill a column with numbers and maintain when adding or deleting lines?

    So far, I've discovered two ways to fill a column with the number:

    1. Enter '1' in a single cell, '2' in the one below, select both, and then use the yellow dot to drag down - it will do the rest.

    2 create a formula such as 'A2 + 1' and drag also.

    However, in both cases it will work if I manually this continues to do for each newly added line at the bottom. Now, that alone would not be that big of a problem if it wasn't for the fact that I'm working with a table where the lines can be added among other rows in the future.

    Having said that, could someone please tell me how to create a column with a number that will increase automatically? I mean - if I add a new line between line 56 and 57, I want the new line to have a '57"in it, and the" old 57 "would now be"58"and so on." " I don't want to drag the whole column, which can be hundreds if not more than a thousand lines.

    Try to put this in the cells in the column:

    = ROW()

    In the formula, you can add or subtract a number if necessary to get the starting number that you need.

    SG

  • 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 take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    I find easier to use this copy separate Automator Service (download Dropbox).

    To install in your numbers > Services, double-click menu just the package downloaded .workflow and if necessary give permissions in system preferences > security & privacy.

    To use, just:

    1. Select the cells in the column with duplicate names.
    2. Choose separate copy in numbers > Services menu.
    3. Click once in the upper cell where you want the deduplicated values appear.
    4. Command-v to paste.

    SG

  • How always show left column on the screen, when I scroll to the right of a large spreadsheet

    How always show left column on the screen, when I scroll to the right of a large spreadsheet

    If the left column is a column header, you can check freeze header columns in the table menu.

    Better not to use TOO many columns.  Numbers works best with relatively little.

    SG

  • How do delet several columns in the 2D table 0

    Dear Sir.

    Please tell me how delet 0 multiple column besuace zero of one by a column of delet take too much time. Here, I have attached the program with this message and the main file.

    Julian_prince wrote:

    Please tell me how delet 0 multiple column besuace zero of one by a column of delet take too much time. Here, I have attached the program with this message and the main file.

    How big are your real matrices? How do you measure the speed? How fast is now and how fast should it be?

    In all cases, you can do it with a single loop, for example as an attachment.

  • 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.

Maybe you are looking for

  • No Audio on Win7 x 64 or Linux I suspend and resume (so this works)

    Well... this problem is * very * strange. Basically, I bought this laptop a L665D-S5076, everything works well so far. Except for the sound. At the moment I opened it upward, I started in windows and update the BIOS, everything worked well (no sound)

  • Satellite A100 (PSAANE) - BSOD if I install Windows XP

    I am the owner of the laptop listed in the title (* Toshiba Satellite A100 PSAANE). *Inittialy that the laptop was sold with Win Vista preinstaled as operated system.My intention is to install Win XP on this computer. I am an experienced user in inst

  • poor performance analog output (error 200018)

    Hello.  I have a 6124 SMU Board with controller real time SMU-8102.  the Council is speced to MECH 4 analog outputs. / s (one lane), but I have problems to operate at anything beyond about 500 kech. / s.  I enclose my example below program.  If I put

  • network adapter for HP Mini 210-2080nr PC

    I updated my netbook of girls ( range of PC HP Mini 210-2080nr) for windows 7 Home premium and now I have no network card light is orange and when I go to network options is said I have no material Please HELP! teenagers with no internet = disaster h

  • windowsupdate_80070641

    I get this error code when I try to use windows update... windowsupdate_80070641. How can I fix this?