English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What SELECT statement should I write

In oracle language
Thanks in advance

2007-02-04 16:10:51 · 2 answers · asked by shumonicagraham 2 in Computers & Internet Programming & Design

2 answers

From Oracle 9i release 2 you can use a change column name command.

The format is
ALTER TABLE tab_name RENAME old_col TO new_col;

You can check it out on http://www.techonthenet.com/sql/tables/alter_table.php

2007-02-05 02:57:38 · answer #1 · answered by Elizabeth Howard 6 · 0 0

You could change the output like this:

SELECT first_name AS employee_id FROM some_table

That will change the output anyway. If you want to change the actual table though, you'll probably have to use the MAKETABLE SQL command to define the table first, and then update that table with the INSERT command using outputted results from a previous query.

2007-02-04 16:28:53 · answer #2 · answered by G A 5 · 0 0

fedest.com, questions and answers