Split by & based on column name

I have 4 rows in 'dataset' table in 'result' field and it is seperated by ampersand (&). I want to divide one field into multiple fields based on field name. How do I do this in SSIS? I'am ok to do this using sql. Fieldname are higligtened.
It would be nice it can be doable without .net script
Result
deptid=1 & firstname=din &
lastname=kal &   middlename=kum
firstname=raj & lastname=puli &  
middlename=kumar & deptid=2
firstname=pavan & lastname=gud &
middlename=kumarrao
deptid=7 & firstname=sha &
lastname=hank
Output
deptid
firstname
lastname
middlename
1
din
kal
kum
2
puli
raj
kumar
pavan
gud
kumarrao
7
sha
hank

Yes there are several ways to do this but I do not think any of them will be as simple or efficient as doing it in a script task. You are going to have to break the string down into its key value pairs. This article(http://www.sqlperformance.com/2012/07/t-sql-queries/split-strings) will
give you a few options to break that string down using CTE's or numbers tables, you wound also be able to achieve some measure of success using a combination of CHARINDEX and SUBSTRING to brake the string down but this would not be very manageable.
I would still recommend using the Script task if you can.  

Similar Messages

  • Automatic Report Bursting based on column names given by user as parameter.

    Hi,
    Could some help me achieve the following functionality. The requirement are:
    1. create a report that has parameters that are column names (display values e.g: department, location, employee job code)
    2. the end user will select one or more columns from the multi-select parameter
    3. we want that there should be a button on clicking that the user should get automatic file bursting. He should not be required to go to schedules tab and create a new job for that.
    4. the report should burst to a file location depending on the columns selected by the user, e.g. if user selected department and location then we should have files saved in the set file location as sales-india.pdf, sales-us.pdf, hr-india.pdf, hr-us.pdf and so on.
    I am new to BI Publisher.
    Could you help me in creating such a parameter, what should be report sql for capturing the data from parameter and then doing report bursting automatically based on two or more parameter values given by the user.
    There is no need to show the report to the user in BI Publisher as there are thousands of rows in a table. Three tables join to give the employee data.
    -Priyanka

    Thanks for a quick response but I am still not clear on
    1. how to do this using custom java code
    and
    2. actually user would login to interactive dashboard and there he will give these parameters using which we need to automatically burst a BI publisher report. Can this be done some how?
    -Priyanka

  • Multiple Column search based on column name

    Hi, Can anybody please help me with my issue. I have a table containing about 100 columns, I am using application express. I want to use a textbox for input, and input will be column name i.e. say one of the column name is "PARK" when user type park in that textbox and click on go or search it will display the records for "PARK" column. How can I do that.
    I am trying like this - select :P124_PARK_NAME from wp_parks.
    it displays the result but display "PARK" instead of actual data for that column. Please help...

    I would prefer some thing like this.
    SQL> create table hx_test
      2  as
      3  select level as rno
      4    from dual
      5  connect by level <=10
      6  /
    Table created.
    SQL> create or replace type num_type as table of number
      2  /
    Type created.
    SQL> create or replace package get_col_val
      2  as
      3     function get(pCol_Name in varchar2, pTable_Name in varchar2) return num_type PIPELINED;
      4  end get_col_val;
      5  /
    Package created.
    SQL> create or replace package body get_col_val
      2  as
      3      function get(pCol_Name in varchar2, pTable_Name in varchar2) return num_type PIPELINED
      4      as
      5       lcol_val number;
      6       lref_cur sys_refcursor;
      7     begin
      8              open lref_cur for 'select ' || pCol_Name || ' as col from ' || pTable_Name;
      9
    10              loop
    11                      fetch lref_cur into lcol_val;
    12                      exit when lref_cur%notfound;
    13                      pipe row (lcol_val);
    14              end loop;
    15
    16              close lref_cur;
    17
    18              return;
    19     end;
    20  end get_col_val;
    21  /
    Package body created.
    SQL> select * from table(get_col_val.get('rno','hx_test'))
      2  /
    COLUMN_VALUE
               1
               2
               3
               4
               5
               6
               7
               8
               9
              10
    10 rows selected.Thanks,
    Karthick.

  • Get value based on column names for custom metadata field of Webcenter Content

    In UCM, I created a custom metadata field of type Text.  I then enabled optlist in that field.  I populate values to the optList, I am using a View.  The View has three columns.  Let us call them ID, Key, Value.  OptList displays the Keys in its list.  I then create a Content (Content ID: MyContent) in Webcenter Content and choose values from OptList for my new metadata field (MyField).
    From Webcenter Portal, I am populating a selectOneChoice with values of MyField in the Content ID: MyContent.  Remember from previous step, the values populated in selectOneChoice is the list of values selected from optList field MyField.  This optList is in-turn populated from View.  After the user selects a value in selectOneChoice, in Javascript, I need to alert a message in this format "value chosen - corresponding value from View of optList that populates MyField"
    I think an example will be useful:
    Here is a View that I created in Configuration Manager applet in Admin Applets of Webcenter Content:
    ID | State | Capital
    1 | North Carolina | Raleigh
    2 | California | Sacramento
    3 | Illinois | Chicago
    Then, I create a Custom Field (Name: MyField).  MyField is an optList the values are populated from View created above.  The internal value and display value are both State.  Then I Check-In a new content with Content Id: MyContent.  For MyContent, I select these values from OptList for MyField: {North Carolina, Illinois}.
    In my Webcenter Portal application, I create a Content Presenter Taskflow.  I configure it as a single item content presenter.  I assign MyContent as Content Id.  Then, in templateView, I get all values of MyField in MyContent and display them as selectOneChoice.  I created a javascript function that would get the value that user selected in selectOneChoice.  In the View created in Webcenter Content's Configuration Manager (above), there is a value corresponding to each value displayed.  So, for the selected value, I need to get the corresponding Capital and display it in my alert message.
    From Javascript, how can I get the value of Capital, given I have the value of State.

    Hi.
    The idea to achieve your requirement is next:
    Create a helper manage bean that will be call as Map access: #{stateUtil['Calofironia']} (it will return Raleigh). This value will be get calling GET_SCHEMA_VIEW_VALUES IDC service using RIDC in your manage bean.
    Pass the result of #{stateUtil['statename']} to your JavaScript function using <af:clientAttribute.../>
    I hope this information help you.
    Regards,

  • How to get Tablename by using only Column Name in Schema?

    Hi,
    Here I need a small information. I am looking for the TableName based on Column Name.
    I know the Column name but not in which Table that Column belongs? So is there any way to look the Table Name by giving Column Name as an Input parameter in Oracle Schema.
    If anybody have the answer please help me out.I appriciate your help.
    Thanks,
    Srikanth Kondeti

    Srikanth,
    The three data dictionary views:
    <ol>
    <li>USER_TAB_COLUMNS</li>
    <li>ALL_TAB_COLUMNS</li>
    <li>DBA_TAB_COLUMNS</li>
    </ol>
    Contain both the column name and the table name (among other things).
    More information can be found in the Oracle documentation, in particular the Oracle Database Reference.
    All Oracle documentation can be accessed from here:
    http://www.oracle.com/technology/documentation/index.html
    Good Luck,
    Avi.

  • Search for columnName and Split data based on that column name

    Hi All,
    I have a table with one column, lets say Notes of datatype varchar(max).
    Source Date:
    Notes
    ABC:123:XYZ Dept:IT NameID:1 Name:Tom Hummer Date:04/12/2004
    456789:CDEF:ADEF
    CBD:12/12/2000:ZXCV Dept:HR NameID:1 Name:Sam Dope Date:06/17/2005
    I want Output should look like below. It should split data at 'Dept:' and 'Name:' I need SQl code  for SQL Server 2008 R2
    Output:
    Notes
    Dept:IT Name:Tom Hummer
    Dept:HR Name:Sam Dope
    Thanks,
    RH
    sql

    Hello,
    Please refer to the following statements:
    create table notes (note varchar(max));
    insert into notes values
    ('ABC:123:XYZ Dept:IT NameID:1 Name:Tom Hummer Date:04/12/2004'),
    ('456789:CDEF:ADEF'),
    ('7890:RST:QWER Dept:Sales NameID:2 Name:Mike Kule'),
    ('CBD:12/12/2000:ZXCV Dept:HR NameID:1 Name:Sam Dope Date:06/17/2005')
    select case
    when charindex('Name:',note)>0 and charindex('Date:',note)>0
    then SUBSTRING(note,charindex('Name:',note)-1,charindex('Date:',note)-charindex('Name:',note))
    when charindex('Name:',note)>0 and charindex('Date:',note)=0
    then SUBSTRING(note,charindex('Name:',note)-1,len(note)-charindex('Name:',note))
    end as name
    from notes
    where charindex('Name:',note)>0
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Script task to read the column names dynamically and create a table in database based on excel column structure

    Hello,
    Can anyone help me out to write a vb.net script.
    I need to read the column names from excel and based on that column names I need to create a table in database(I have more than one sheet in excel).
    For each sheet columns will be changing and should create a table dynamically for each sheet.
    Any help would be appreciated.

    Refer the below script to read columns in each sheet.
    Dim excelfile As String = Dts.Variables("ExcelPath").Value.ToString
    Dim connectionstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;" +
    "Data Source=" + excelfile + ";Extended Properties=Excel 8.0"
    Dim oledbcon As New OleDb.OleDbConnection(connectionstring)
    oledbcon.Open()
    Dim dt As DataTable
    Dim schemaTable As DataTable
    Dim OLEDBCMD As New OleDb.OleDbCommand
    Dim oledbdatareader As OleDb.OleDbDataReader
    Dim columns As String = ""
    dt = oledbcon.GetSchema("Tables")
    Dim TABCOMMAND(20) As String
    Dim TABCOUNT As Integer = 0
    For Each row As DataRow In dt.Rows
    TABCOMMAND(TABCOUNT) = "SELECT * FROM [" & row.Item("TABLE_NAME").ToString & "]"
    OLEDBCMD.CommandText = TABCOMMAND(TABCOUNT)
    OLEDBCMD.Connection = oledbcon
    oledbdatareader = OLEDBCMD.ExecuteReader(CommandBehavior.KeyInfo)
    schemaTable = oledbdatareader.GetSchemaTable()
    For Each myfield As DataRow In schemaTable.Rows
    For Each myproperty As DataColumn In schemaTable.Columns
    If myproperty.ColumnName = "ColumnName" Then
    columns = columns & myfield(myproperty).ToString & ","
    MsgBox(myfield(myproperty).ToString)
    End If
    Next
    Next
    oledbdatareader.Close()
    OLEDBCMD.Dispose()
    Next
    oledbcon.Close()
    Regards, RSingh

  • ORA-20100: Column name undefined invalid Error - Table splitting

    Hi
    While tablesplitting in our upgraded ECC6.0 (EHP4) system, we are facing the below error
    BEGIN table_splitter.ranges('SOFFCONT1','undefined',5,'/tmp/sapinst_instdir/ERPEhP4/LM/COPY/ORA/EXP/CENTRAL/AS-ABAP/PRETABSPLIT/Split/DATA'); END;
    ERROR at line 1:
    ORA-20100: Column name undefined invalid
    ORA-06512: at "SAPR3.TABLE_SPLITTER", line 775
    ORA-06512: at line 1
    In our R3hint file we have the below entry, but still we face the issue.
    (kdecc01)#cat R3ta_hints.txt | grep SOFF
    SOFFCONT1       PHIO_ID
    Has anyone faced this issue before?
    Senthil

    see SAP note 1043380
    Ensure the directory being reference does actually exist and ensure
    privilege are provided for access. Also, a Directory Alias should be
    used instead of the database parameter UTL_FILE_DIR which has been
    deprecated.
    Grant the READ or WRITE privileges to the username accessing the
    DIRECTORY.
    Ensure that the file being read does exist and actually contains
    information to be read.
    regards,
    Vincent

  • Dynamic Change Of Column Name based On The Dashboard Prompt in OBIEE 10g

    Hi All,
    I have a dashbord prompt called "calendar date". And, my report having some columns called "Product Name", "Code", "Yest Balance", "Today Balance". Now, while displaying the report in the dashboard, instead of "Today's Balance" they want to see the date which we have selected in the promt as a column name (each time we select a date in the promt, that would appear as a field name in stead of "Today's Balance" but values will be same (should show the balance for that date).
    Please advice.
    Thanks,
    BK.

    yeah...you are correct....these are workaround ...no out of box solution.
    Take the MAR11 target example in this current month is MAR 11 is populated by a session variable which gives you always current month.
    Second using union -combined query creating a header from one report and results from other report.
    But, coming to your req.......what ever the value selected in the calendar date that should come up in the column heading. so this is not possible with variable because for date of calendar image type you can not set a presentation variable. If not you can use a REQUEST VARIABLE.
    You can try 2nd way creating 2 reports one for header other for value.
    You can choose based on your flexibility. Instead you are showing the report along with prompt. I would suggest use appropriate name as 'selected date value'.

  • Can I create a view based on two tables that have the same column name?

    I have two tables A and B. Each table has 50+ columns.
    I want to create a view that includes all the columns in A and all the columns in B. I created a view with a select statement that says
    Select A.*, B.*
    From A, B
    where A.id = B.id
    It returns an error because in each table I have a column that keeps track if a record has been changed called Modified_By. That's where it chokes up on I figure. I would like to write the view without explicitly writing each column name from A and B as part of the select statement. The actual select statement works fine and only bombs when trying to turn the select statement into a view.

    You will have to type the full column list at least once. You can save a few keystrokes (i.e. alias. on every column) by providing the column names to the CREATE part instead of in the SELECT part. Something like:
    SQL> desc t
    Name                                      Null?    Type
    ID                                                 NUMBER
    NAME                                               VARCHAR2(10)
    SQL> desc t1
    Name                                      Null?    Type
    T_ID                                               NUMBER
    LOC_ID                                             NUMBER
    NAME                                               VARCHAR2(15)
    SQL> CREATE VIEW t_v (id, t_name, t_id, loc_id, t1_name) AS
      2  SELECT t.*, t1.*
      3  FROM t, t1
      4  WHERE t.id = t1.t_id;
    View created.HTH
    John

  • Finding a TABLE based on a COLUMN NAME...

    I need to find all tables that that have a common column name.
    Upon searching the Forum, I found this nice nugget:
    How to find the table in a schema if I only know a particular column name
    The problem is, my USER_TAB_COLUMNS is EMPTY!
    If it had worked, then my statement would be:
    select * from USER_TAB_COLUMNS
    where COLUMN_NAME LIKE '%TEST%'
    and OWNER='ME';
    I get "no rows selected" (though I know they exist)
    if I do:
    select * from USER_TAB_COLUMNS
    I also get "no rows selected"
    Any ideas!
    Thanks!
    KSL.

    The user_xxx data dictionary tables show all of the whatevers that are owned by the logged in user. So, if you are logged in as user1 the user_tab_columns view will only show tables and views owned by user1.
    The all_xxx dictionary views show all of the whatevers that the logged in user has access to. so if you are logged in as user1 and user2 gave you selet privileges on tablea, then you would see tablea in all_tab_columns.
    The dba_xxx views show all objects in the database, but are generally only available to privileged users.
    If you have access to the dba_views, try:
    SELECT owner, object_type
    FROM dba_objects
    WHERE UPPER(object_name) = 'ANL'It is possible that the table and or its columns were created with double quotes so are case sensitve. It may also be a synonym, pointing to one of the tables that you got form your query.
    If you are only using all_tab_columns then it is possible that the user you are logged in as does not have privileges on the table anl so would not see it in the view.
    A long shot, but are you sure you are in the right database?
    John

  • How to know column name (not an expression) used by function-based index?

    Hi guys,
    Is there any way to know exact column name used by FBI? If I correct, there is SYS.ICOLDEP$ table that has mapping between index/table columns, but I don't see how it could be uniquely joined with the rest. I know about USER_IND_EXPRESSIONS, but the task is to know exact column name, not it's expression.
    This required by our so-called SQL preprocessing of DB schema update utility, which parses stmt (INSERT in our case) and should check against PK/UNIQUE key values.
    Thanks!

    I don't think this is possible in 10g or 11g because :
    1. dictionary keeps track of column number in index and not in table
    2. the expression used in CREATE INDEX is a system generated column
    You would have to parse the expression from USER_IND_EXPRESSIONS:
    SQL> create table t(x int, y int);
    Table created.
    SQL> create index fbi on t(y+1);
    Index created.
    SQL> column index_name format a10
    SQL> column column_name format a20
    SQL> column column_expression format a10
    SQL> select i.index_name, ic.column_name, ic.column_position as iccn, ie.column_position as iecn, ie.column_expression
      2  from user_indexes i , user_ind_columns ic, user_ind_expressions ie
      3  where i.index_name = ic.index_name
      4  and i.index_name = ie.index_name
      5  and i.index_name =  'FBI';
    INDEX_NAME COLUMN_NAME                ICCN       IECN COLUMN_EXP
    FBI        SYS_NC00003$                  1          1 "Y"+1

  • Selecting and joining differnent tables based on columns populated

    I have a table for audit purpose
    Table paudit
    pauditid (NOT NULL)
    operationid (NOT NULL)               
    typeid     (NOT NULL) -- Electronics, furniture, entertainment, department     
    operatorid (NOT NULL)
    electronicsid
    furnitureid
    entertainmentid                    
    departmentid               
    location (NOT NULL)
    changeto
    changefrom
    memberelectronicsid               
    memberfurnitureid               
    memberentertainmentid          
    memberdepartmentname     
    paudittime     
    deptfrom          
    deptto
    operatorname     name     type          operation     location     deptfrom     deptto     membername
    operatorname1     name1     Electronics     install          abcbcbcb
              name2     furniture     uninstall     nnddnd
              name3     furniture     move          jdjdj          abc          def
                   entertainment     product_add     gjhg                         adfgfgffdg
                   entertainment     product_del     gfhfghj                         dgfdfgdfgf
    Operatorname2As you can see, based on the typeid and operationid differnt columns get populated. But the proble is that is all these columnid's have to be joined to the resipective tables to get the names and the result will have be all consolidated into a single column. Like the column "name", in the sample above, to get the name, based on the type, would have to be joined with 4 differnt tables to get the "name". Based on the "operation" 3 diffent tables would have to joined to get the "membername". Hope this is clear.
    I was thinking about using "With as" and "parition by". But I got confused. So I would like some one to help me out if they have done something similar or point me in the right direction.
    Also these reports could be run for long periods of time or often and hence performance is also important.

    Well one of the main reason this was done was to enforce foreign keys when it comes to using ids and referring from other tables and the columns were split based on the produt type.
    pauditid     operationid     operatorid     electronicsid     furnitureid     entertainmentid     departmentid     location     changeto     changefrom     memberelectronicsid     memberfurnitureid     memberentertainmentid     memberdepartmentname     paudittime     deptfrom     deptto     typeid
    41     2     3     74                    UYWZrKifzeVVGJzhocmh                                                  1
    42     3     3          66               ngqmfBaagQyLMTXNjjju                                                  2
    43     2     13               9          NnLBvOJjZAPJFtkJLQcg                                                  3
    44     4     13                    16     NRYMhvySvbrsiuLKAgfH                                                  4
    45     2     7     10                    hZAMQcoGeeMXjrNcfBsH                                                  1
    46     4     50          11               vKswkxnfNnRkcKkFxanP                                                  2
    47     3     13               4          opBYnyQLArRwxOQTURww                                                  3
    48     1     22                    14     SaGoHjQGtlMQjjOzfFEO                                                  4
    49     4     41     53                    DaPXkQVAZOvqgWPXFlEi                                                  1
    108     1     13                    14     OfYVYvhBJpwExyfrIDux                                                  4
    109     4     6     81                    GODUpaejHEdpcOGTYGsF     iSHTF     aJtmf                                        1
    110     2     21          88               cpOVLkRuZtaMlLgKmCXz     MIMoN     NcFwD                                        2
    111     1     32               36          DyaqlSglgvDTzQMMQmsa     gipDq     bIoTb                                        3
    112     4     47                    48     ncwzqYjSCgIcBaeOxXkk     XVuZi     fEuYj                                        4
    113     1     33     62                    PzHlvjpYjJkPhFYfZDzN     ryVIB     tPHoA                                        1
    114     4     46          16               jnVNDWHuUnDAyOFItlaD     EoRsW     tkkYU                                        2
    115     4     43               45          lvJvmTYmQrwkNJnBirEX     MAFgG     xbqym                                        3
    116     4     25                    98     JtBYgfCSAoBafXbcovhr     yDstl     llGPL                                        4
    186     7     3               2          kvymkGFDPsPcqtRqmdFF                    32                              3
    187     8     18               6          YcwhKhgRdMlUspaLlGWj                         50                         3
    188     7     19               8          EGtVVpNJYuUunmUsEBxj                              jrCYkboqxXadjqDgWuaB                    3
    189     7     4               8          gcuEqHTTJspnohiLSNom               15                                   3
    190     8     12               13          KgvuLHNQLmHOruIzpNOR                    33                              3
    191     7     8               24          jjNJseqqIqzCPgkUfxBg                         55                         3
    192     8     6               5          bDEYJnZtQJEDlDHUcGQG                              bsTVKQxsQaGKmShBRPkZ                    3
    193     8     3               4          AkroIDSnEkfdlTCRZOfE               7                                   3
    241     9     8     19                    vbrGYWcdrTbCQdtGAVlZ                                        15     6     1
    242     9     7          13               AoKZgAtBkkvXqFwcpZQl                                        25     10     2
    243     9     16               14          CEKuwaMwPCfEXWecDXaG                                        17     20     3
    244     9     17                    20     uCLddsBDtVTdbGxAmbcN                                        14     14     4
    245     9     3     22                    wrsiJORxHWXaTNzIXziy                                        14     14     1
    246     9     14          20               zCULRoirtEMnHSAArrEu                                        10     24     2
    247     9     5               6          bKLEEijvtNuaCApBajNa                                        16     1     3
                                                                          

  • Oracle 10g - Defining the column name in Non English

    Hi Experts,
    I have an exisitng application which is developed on Windows using ASP Technology and uses Oracle 10g 10.1.0.2.0.
    The application is supported with an instance of Data Base within which multiple tablespaces are created for different clients. The application is developed in such a way that some of the tables arecreated dynamically and the columns are named using the data entered through the UI.
    This application needs to be globalized now. The problem is, the column name entered through the UI can be in any language based on the client's settings and those values in turn will be used for naming the columns in the tables.
    1) Can I have the column names to be named using non english characters in Oracle 10g DB? If so,
    1.1) what should I do to configure the exisiting Oracle instance to support it?
    1.2) To what level is that configuration possible, is it per DB instance level (or) can it be done at Tablespace level. I would like to configure each tablespace to host tables with columns defined with different languages, say for example, tablespace 1 will have tables with Japaenese column names and tablespace 2 will have tables with German column names?
    2) What should I do to make my entire DB to support unicode data i.e., to accept any language strings. Currently all strings are declared as VarChar2, should I change all VarChar2 to NVarChar2 (or) is there a way to retain the VarChar2 as is and make some database wide setting?
    Please note that I do not have an option of retaining the column in English as per the Business Requirement.
    Envionment:
    OS - Windows 2003 32 bit
    Oracle 10g 10.1.0.2.0
    UI forms in ASP
    TIA,
    Prem

    1. Yes, you can.
    SQL> create table ÜÝÞ( ßàá number(10));
    Table created.
    SQL> insert into ÜÝÞ values (10);
    1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
    SQL> create table ÜÝÞ( ßàá varchar2(100));
    Table created.
    SQL> insert into ÜÝÞ values ('âãäçìé');
    1 row created.

  • How to rename a column name in a table? Thanks first!

    I tried to drop a column age from table student by writing the
    following in the sql plus environment as :
    SQL> alter table student drop column age ;
    but I found the following error
    ORA-00905: &#32570;&#23569;&#20851;&#38190;&#23383; (Lack of Key word)
    I have oracle enterprise edition 8.0.5 installed at windows 2000
    thank you
    And I want to know how to rename a column name in a table?
    thanks

    In Oracle 8i, your syntax would have worked.  However, if I
    recall correctly, in Oracle 8.0, you can't rename or drop a
    column directly.  One way to get around that problem is to
    create another table based on a select statement from your
    original table, providing the new column name as an alias if you
    want to change the column name, or omitting that column from the
    select statement if you just want to drop it.  Then drop the
    original table.  Then re-create the original table based on a
    select statement from the other table.  Then you can drop the
    other table.  Here is an example:
    CREATE TABLE temporary_table_name
    AS
    SELECT age AS new_column_name,
           other_columns
    FROM   student
    DROP TABLE student
    CREATE TABLE student
    AS
    SELECT *
    FROM   temporary_table_name
    DROP TABLE temporary_table_name
    Something that you need to consider before doing this is
    dependencies.  You need to make a list of all your dependecies
    before you do this, so that you can re-create them afterwards. 
    If there are a lot of them, it might be worthwhile to do
    something else, like creating a view with an alias for the
    column or just providing an alias in a select.  It depends on
    what you need the different column name for.

Maybe you are looking for

  • Prefixes in 6.5 Don't work

    I am trying to put a prefix of "seg-" using a rule file in Essbase 6.5.5. It rejects all records. If I remove the prefix, the records load fine. Prefixes worked in version 6.1 and I'm using the same rule file I used in that version.Also, the "Drop Le

  • Accessing String assigned in a JSP from a Servlet?

    Hello all, I was wondering if there is a way to access a String object that was assigned by an HttpSession object in a JSP from a Servlet. What happens is, in my application a user logs in, an HttpSession object is instantiated and all of the user cr

  • Title issue in jsp

    I am writing html code in JSP. My jsp includes only below two lines. <jsp:useBean id="htmlCodeString" class="java.lang.String" scope="request" /> <%=htmlCodeString%> htmlCodeString is html code being generated in java code and includes all the html t

  • Workshop 8.1 WS-Security (WSSE)

    Dear Colleagues, I am new to Bea Platform 8.1 and Workshop 8.1 that comes with it. I have installed this platform on my Windows 2000 professional machine. I have started evaluating Workshop 8.1 to see how it can improve the development of enterprise

  • Pacman wants to install extra stuff when trying to update..[Solved]

    after running a pacman -Syu this is what it wants to install.. I am running kdemod, dont have a clue why it wants to install all those stuff with gnome and compiz.. The only stuff I have installed is emerald and wine.. local database is up to date ::