Create the table with the environment variables

Hi all
When an event occurs, I would create a table by a planning procedure.
I can create a table with these last or similar syntax:

create table % s_ %t in select acme_ * from a;

I would use this syntax because this event could be spend more time per day and so I can check.
is this possible?

Thank you very much
Ciao
Alberto

Albertofro wrote:
Hi all
When an event occurs, I would create a table by a planning procedure.
I can create a table with these last or similar syntax:

create table % s_ %t in select acme_ * from a;

I would use this syntax because this event could be spend more time per day and so I can check.
is this possible?

Thank you very much
Ciao
Alberto

To dynamically create a table, you must use EXECUTE IMMEDIATE. If you want your table to be padded with timestamp name you can do it with the function TO_CHAR and SYSDATE.

An example

execute immediate 'create table acme_' || to_char(sysdate, 'DDMMYYYYHH24MISS') || ' as select * from a';

Tags: Database

Similar Questions

  • How to create a table with no lines to the left or to the right?

    If I create a table with say 5 columns and 15 lines, how not to do a vertical line (border) to the left and to the right of the table while keeping the boundary up and down? Is that possible or I just put a white box on the left and the right?

    IDCS3

    There are a few methods that work. Here is one.

    (1) select your table cells

    (2) open the race Panel

    3) click the blue lines of the proxy image in the Panel of stoke to deselect the lines inside and high and low lines

    (4) 0 the value of the weight of the race (or change the color of the None swatch)

    Oh and for the love of your fellow designers or the person that allows you to edit your work in the future... do NOT use a white box to hide the traits of lines and columns in the table.

    HTH

    -mt

  • If the Environment Variable in Vista

    How to change the Environment Variable in Vista? ... I could do with XP using Control Panel > performance and Maintenance, but could not find the area revealing in Vista.

    Hello

    When you see something surrounded of % this means there is a system environment Variable
    together who will take the place of it. SystemRoot where Windows so for most, it will be
    C:\Windows however if Windows is on drive D: it would be usually be D:\Windows.

    Start - type in the search box-> explorer.exe SystemRoot

    Enter and see where it leads you.

    Another is %UserProfile%, which is the currently logged-on user

    Start - type in the search box-> explorer.exe %USERPROFILE%

    Enter and see where it leads you.

    With the help of people and other environment variables, commands can be written so that they will apply no.
    matter where Windows to installed or that the user connects (for the above examples).

    To view the current system Environment Variables:

    Start - type in the search-> CMD box find top - make a right click on - RUN AS ADMIN

    When the COMMAND PROMPT opens it will look something like

    C:\Windows\System32 >

    Type SET and press on enter and you will see the present commands.

    to see the command SET type in ALL of the structure? and press on enter – the space between T and.

    =======================================================

    Environment variables
    http://vistaonwindows.com/environment_variables.html

    Create your own Environment Variables
    http://Lifehacker.com/259018/create-your-own-environment-variables-for-quick-folder-navigation

    Change a path of users in Windows Vista: Vista Path Environment Variable
    http://www.question-defense.com/2009/06/22/modify-a-users-path-in-Windows-Vista-Vista-path-environment-variable

    Environment variable
    http://en.Wikipedia.org/wiki/Environment_variable

    I hope this helps.
    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • What are the ENVIRONMENT VARIABLES?

    What are the ENVIRONMENT VARIABLES?

    Hello

    Environment variables
    http://vistaonwindows.com/environment_variables.html

    Create your own Environment Variables
    http://Lifehacker.com/259018/create-your-own-environment-variables-for-quick-folder-navigation

    Change a path of users in Windows Vista: Vista Path Environment Variable
    http://www.question-defense.com/2009/06/22/modify-a-users-path-in-Windows-Vista-Vista-path-environment-variable

    Environment variable
    http://en.Wikipedia.org/wiki/Environment_variable

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Unable to create the session variable after upgrade to 11g

    Hi all

    I've updated RPD 10g for the OBIEE 11g version. Everything works fine. I can access the data when I click Show data on the table in physics. But when I tried to create the initialization block to create the session variable, I was not able to select the connection pool. Anyone have any idea why is - this? I've updated RPD and catalog using OBIEE upgrade utility. There was no error. Analyze in dashboards work correctly.

    [http://imageshack.us/photo/my-images/7/56090083.png/]

    Thank you

    Hello

    Reference: http://sranka.wordpress.com/2011/06/02/unable-to-create-session-variable-using-obiee-11-1-1-5-admin-tool/

    Thank you
    Saichand.v

  • Create the registry variable

    Hello

    I'm looking to create the registry variable, the script console and came across this post http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/f/4788/t/19557561.aspx to create the simple registry variable.

    However, I need to add registry values to objects of topology (FxMApplicationResult to be precise). Is there a way to do this in the script. Can you please indicate.

    Thank you

    Vincent

    To add that John has already provided.

    This will allow you to query the outside object and assign the value.

    She could use additional checks of types etc. but a quick way to reach of many objects to a specific value that are not part of the global default value

    // Name of the Registry Variable we are going to updatedef regVarName = 'SampleRegistryVariableName'  
    
    //Value we want to set on the returned objects.//This is based on the registry Variable Type (Double, Long, Integer, String, Boolean, Timestamp, Password)def newRegValue = 99 as Double
    
    // Query to return the objects we want the registry value scoped toodef topologyQuery = #!Host where name like 'host%'#
    
    // Get the Registry Service to execute the registry updatedef regSrv = server["RegistryService"]
    
    // Get the registry variable for updatedef regVar = regSrv.editRegistryVariable(regVarName)
    
    // Get all existing values for this registrydef values = regVar.getRegistryValues()
    
    // Loop through the objects returned from the queryfor( obj in topologyQuery.getTopologyObjects() ) {
    
    // create the registry value object associated to the current object in loop   newTop = regVar.createTopologyObjectRegistryValue(obj.uniqueId)
    
    //set the value defined within newRegValue   newTop.setDefaultValue(newRegValue)
    
    //add the topologyObjectRegistryValue to the Array of existing values   values.add(newTop)}
    
    // Store the values within the Registry VariableregSrv.saveRegistryVariable(regVar)
    

    Hope this helps your use and any other case.

  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • How to create a table with these dimensions?

    Still new in Indesign, but I need to create a table like the one below.

    Screen Shot 2015-03-10 at 2.31.25 AM.png


    Select the text tool, I created a block of text and then insert a table. However, I'm lost as to how to change the top line for the length of the two columns from the bottom.
    I looked at the options of panel paintings, but it only allows me to change the number of lines and columns.

    All advice is appreciated. Thank you.

    You must create a table with two rows and two columns.

    To select the first line and click "merge cells".

  • How to create a table with muse?

    How can I create a table with muse?

    Muse do not support building tables at this time.

    However, you can add HTML table to the object-> the option Insert HTML code as a way to get around this.

    http://www.w3schools.com/HTML/html_tables.asp

    You can even try lining up a few text boxes with or without contour applied to create a tabular look editable in design mode.

    Thank you

    Vinayak

  • How to create a table with editable column values.

    Hello world
    I think it's very simple, but I am unable to find how to do this. This is my requirement. I need to create a table with n columns and 1 line initially. the user must be able to enter data into this table and click of a button must insert the data into the database table. Also, there should be a button at the bottom of the table to add 1 line to the table.

    I know how to do the insertion of data, but can someone please let me know how to create a table which allows the user to enter data and how to create a line button Add 1?


    Thanks in advance!

    Raghu,

    Go through the tutorial of Toolbox Page & Advanced section of the Guide of the OFA table.

    Step 1 - you need to create EO & VO from this EO. This EO will be table of database where you want to insert the data.

    Step 2 - create an advanced table region. (See this section in table advanced for more details)

    Step 3 - attach this VO in the BC4J region advanced Table component.

    Kind regards
    GYAN

  • create a table with 2000 records

    Hello

    can someone guide me to create a table with 2000 records
    the columns and data types are as follows
    number of inventory_item_id
    number of organization_id
    number of process_flag
    transaction_type varchar
    number of set_process_id
    number of min_minmax_quantity
    number of max_minmax_quantity


    process_flag is always have a value of 1, set_process_id always has the value 3 and transaction_type should be done with the update and the remaining columns will have different values

    kindly guide me

    thanking in advance

    It doesn't really matter what you... just trying to generate the insert statement in excel first on each row and then cut and paste... and make sure that they are syntactically correct before running each other and engage

  • How to create a table with two unique columns

    How to create a table with two unique columns. I use the following syntax below and I get the error message such unique or primary key already exists.

    create the table COPQ_WORKCELL_GOAL
    (
    Type_id varchar2 (4) NOT NULL UNIQUE,
    Tyle_Location varchar2 (30) NOT NULL UNIQUE,
    Type_Description varchar2 (20).
    KEY elementary SCHOOL (Type_id)
    );

    Use 1 or the other column type_id;

    create table COPQ_WORKCELL_GOAL
    (
      Type_id varchar2(4),
      Tyle_Location varchar2(30) NOT NULL UNIQUE,
      Type_Description varchar2(20),
      PRIMARY KEY (Type_id)
    );
    
    Table created
    drop table COPQ_WORKCELL_GOAL;
    
    Table dropped
    create table COPQ_WORKCELL_GOAL
    (
      Type_id varchar2(4) primary key,
      Tyle_Location varchar2(30) NOT NULL UNIQUE,
      Type_Description varchar2(20)
    );
    
    Table created
    
  • Create a table with all kinds of oracle data types?

    Hello
    who can give me a small example to create a table with all kinds of oracle data types? and the example to insert it?

    Thank you
    Roy

    Hello

    Read the fine manual. It contains examples at the end of the chapter.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_7002.htm

    I don't know if you know that you can also create your own data types using 'create a type '. So look for examples that are of your interest and not for all types of data.

    Concerning

    Published by: skvaish1 on February 16, 2010 15:33

  • How to create a table with auto-numbering?

    I want to create a table with a default value of column to the increase in whole number. The first thought came to me, is to use the sequence. I find in google than following create statement
    create table etl_stats1 (run_time date,arr_rows int,lid int default nextval('etl_req'));
    get ORA-04044: procedure, function, package or type is not allowed here.

    There are discussions described here uses the trigger to do the job. But that does not support by default in a sequence, it seems so average.

    You must create a sequence and a trigger:

    SQL> create table etl_stats1 (run_time date,arr_rows int,lid int)
      2  /
    
    Table created.
    
    SQL> create sequence etl_seq;
    
    Sequence created.
    
    SQL> create or replace
      2    trigger etl_stats1_bir
      3    before insert
      4    on etl_stats1
      5    for each row
      6    begin
      7        select etl_seq.nextval into :new.lid from dual;
      8  end;
      9  /
    
    Trigger created.
    
    SQL> insert into etl_stats1 (run_time,arr_rows) values(sysdate,99)
      2  /
    
    1 row created.
    
    SQL> select * from etl_stats1
      2  /
    
    RUN_TIME   ARR_ROWS        LID
    -------- ---------- ----------
    15:38:41         99          1
    
    SQL> 
    

    SY.

  • Create a table with a thinner than the source table granulaty

    Hello
    I had a problem. I have a source table that has vacation date / period for employees inside. I want to create a table where I "split" the period of vacation days for each employee.
    Example:
    Holiday table:
    Name - Holiday beginning - end of holiday
    Mr.X - 1.1.2011 - 5.1.2011
    Mr.Y - 2.5.2011 - 3.5.2011

    -> new table:
    Name - Day of vacation
    Mr.X - 1.1.2011
    Mr.X - 2.1.2011
    Mr.X - 3.1.2011
    Mr.X - 4.1.2011
    Mr.X - 5.1. 2011

    and so on
    Is there an operator or something else with which I could create the new table? I use OWB 11 GR 2

    THX

    Hello
    Join your source table to another table that contains all the dates (for example, you can use time dimension in OWB):

    Select vt.name, d.date_value in the vacation_table, vt, dates_tab d vacation_day
    where d.date_value between vt.vacation_start and vt.vacation_end

    Kind regards
    Oleg

Maybe you are looking for

  • Connect the Gamecube to A60

    When it comes to computers, I like to think I know all this. But I did not. So I need your help! I want to connect my Nintendo Gamecube to my Satellite A60, so I can play using the screen of the laptop instead of buying a TV. What should I specifical

  • Using wireless network adapter

    Hey I have a problem with my wireless card on my HP Desktop (with vista). Apparently it is not. When I try to connect to a network, nothing does not appear, and when I diagnose why he says because there is no installed w.n.a. When I search on my comp

  • my internet connection sharing went :((

    my internet connection sharing went: (when I make connection ad - hoc tab "turn on internet sharing" still there... but this time I started to do a special tab disappeared...:(je dois redémarrer mon pc et tourner sur internet en partageant (cocher) o

  • surface rt address bar does not bing search, goes in search of time warner cable/yahoo

    My rt surface does not Bing search when searching through the address bar. If you enter a term to search above the address bar offers research appear. If you do not select a suggested search or there is no suggested research URL changes and says Bing

  • Entity displayed in the browser, but not displayed in the logic model

    HelloIn a drawing, I got myself in a situation where two entities are identified in the logic model of the browser, but are not as on the logical schema. I have created the entities, but removed later. However, when I engineer the logic of the relati