Assign the value of a char date to a date format column

Hello

I have a table with columns target say

col1 varchar2;
col2 date;

I have to insert the form data source whose columns are

col1 varchar2;
col2 char (8);

How can I assign the date of tank to the target column.

Date in the source format is '20110412'.
I need the same formula in the target.

I used to_date (source.col1) to assign.
I get data such as April 12, 11.
I don't want this format.

Help, please.

Published by: user13616389 on April 12, 2011 04:31

Hello

This is because the setting NLS_DATE_FORMAT. You need to change it according to your need.

ALTER session SET NLS_DATE_FORMAT = "YYYYMMDD" statement

SQL > select to_date('20110412','YYYYMMDD') from double;

TO_DATE (')
---------
12 APRIL 11

SQL > alter session SET NLS_DATE_FORMAT = 'YYYYMMDD ';

Modified session.

SQL > select to_date('20110412','YYYYMMDD') from double;

TO_DATE)
--------
20110412

Thank you
Fati

Tags: Business Intelligence

Similar Questions

  • How to assign the value to the particular text box field

    Hi all

    My requirement is to call the Web service with the participation of the ADF page.

    The steps I did:

    1. I created a data control to the WSDL-based Web service.

    2. simply drag and drop the process, it is automatically created the form with the fields of entry, press the Process button

    3. when I entered the values and then process button, it'il pass web service values corretly.the is called with the values entered correctly.

    4 but when I try to assign the value of some other material that does not work.

    I am assigning value to the value field navigate to the properties of the particular field = "CRΘER."

    When I like what the value is displayed on the screen. But it will not pass the value to the web service.

    I think that the value is only the display on the screen. Stored not at the level of links. Kindly guide me in this.

    Thanks in advance
    C.Karukkuvel

    Hello

    Just the previous value placed on the next to put that into the first field level JSpx

    If not put a valueChangeListener and EL Expression to set the value

    Kind regards
    Suganth.G

  • ADF: Assigning the value of column VO to OutputText.

    Hi all

    I have a VO who im showing as ADF read Table only. And one column that VO should be included outside of this table, I mean, I don't want to include this column in the table that I want to assign the value of the column to Text output component (Active).
    I want to assign the value of the column to the output text component.
    How can I achieve this.
    I think im clear with my requirement.

    Any answer will be really grateful.

    Please read this before posting
    https://forums.Oracle.com/forums/Ann.jspa?annID=56

    am now back to the topic.

    tell as an example.
    Here, I had to employee vo drag and drop as readonly af:table employee.
    in this readonly af:table no need to show their id of employee, but you don't want to show this id used as some text output at the top / bottom of the table.
    I think reason?. as it comes to your condition.

    If am so right, moving later.
    Drag and drop the af: table without employee id. and then drag and drop the employee as af text id: output
    important: employee select id in the user interface that came out text go to partial property inspector trigger are at table.

    You may wonder why I like this mean?
    If you like this then means that move through the records of documents / select in af:table means revalent employee id get you. This way you get the desired results. :)

    Thanks & cordially
    ADF7.

  • Assign the value to the Application Variable via javascript

    Hello

    How can I assign value to an element of the application (not the page element) through javascript.

    I tried to assign the value as follows:

    $s ('F150_REGION_TEMP', region);

    where F150_REGION_TEMP is the application variable and 'region' is populated value in javascript.

    Kind regards
    Benz

    Hello

    Try

    
    

    BR, Jari

    Published by: jarola on March 1st, 2010 14:47

  • data control - list is displayed before the method assigns the value

    Hello

    I have a page of the adf, which displays buttons in a table - a button by rank.

    by clicking on the button, I open a pop up that displays content specific to this button.

    That's what I have in my adf page:

    "< af:commandImageLink icon="/images/button.png ".

    ID = "cil1".

    partialSubmit = 'true '.

    action = "click on" >

    < name f: attribute = "id" value = "#{row.ID}" / >

    < af:clientListener = "clientAction" method

    type = 'action' / >

    < af:serverListener type = "serverAction".

    Method = "#{ContentGenerator.ButtonClicked}" / >

    "< popupId = af:showPopupBehavior": myPopup "/ >"

    < / af:commandImageLink >

    clicking this button opens a pop up, and it calls the buttonClicked() and ContentGenerator of class-

    public class ContentGenerator {}

    private list < String > contentList = null;

    getter and setter for contentList

    private String id = null;

    public ContentGenerator() {}

    System.out.println ("id->" + id);

    generate content based on id and defined in the contentList parameter list

    }

    {} public void buttonClicked (ClientEvent actionEvent)

    ID = (String) actionEvent.getComponent () .getAttributes () .get ("id");

    System.out.println ("id->" + id);

    }

    }

    I dropped a table in the popup for this contentList data control parameter (ClassGenerator is a data control).

    the issue I'm facing is:

    I get the good method of buttonClicked() id. However the ClassGenerator constructor is called before and I get null so my list of content does not get generated.

    I tried to generate content in the buttonClicked() method and updated list in contentList parameter but always popup does not appear anything in the table. probably contentList is already read by popup, and it is set to null.

    public class ContentGenerator {}

    private list < String > contentList = null;

    getter and setter for contentList

    private String id = null;

    public ContentGenerator() {}

    System.out.println ("id->" + id);

    }

    {} public void buttonClicked (ClientEvent actionEvent)

    ID = (String) actionEvent.getComponent () .getAttributes () .get ("id");

    System.out.println ("id->" + id);

    generate content based on id and defined in the contentList parameter list

    }

    }

    my version of jdeveloper is 11.1.1.7.

    Please suggest what should I change?

    Thank you.

    Here you have the solution.

    https://DL.dropboxusercontent.com/u/46128268/OTN-samples/OTNPopup.rar

    The main elements are:

    
                          
                            
    
    

    clientComponent = 'true' and clientAttribute to send values to af:popup


    In af:popup:

    
                      
    

    eventContext to Launcher and launcherVar to get the attributes sent.

    Scope of the variable to viewScope in a listener of type popupFetch.

    If you take a look in the methodAction of home.jspx binding, the name parameter has the value viewScope.dogname.


    We must also change the iterator binding refresh to IfNeeded if deferred to re-run the iterator when the setting is changed.

    I hope that with the sample, you can realize you're objective.

    Sorry if I confused you before but I need refresh my ADF.

    Kind regards.

  • ORA-06550 assign the value to the parameter

    Hi trying to assign the date quarter to a variable and get this error message, how can I assign a value to this parameter to PL/SQL:

    declare

    Neighborhood varchar (2);

    Start

    Select to_char (sysdate, 'YYYY-Q') in double shifts;

    dbms_output.put_line (Quarter);

    end;

    [Error] Execution (05:42): ORA-06550: line 2, column 42:

    PLS-00201: identifier 'vQUARTER' must be declared.

    ORA-06550: line 2, column 50:

    PL/SQL: ORA-00904: invalid identifier

    ORA-06550: line 2, column 3:

    PL/SQL: SQL statement ignored

    ORA-06550: line 3, column 26:

    PLS-00201: identifier 'vQUARTER' must be declared.

    ORA-06550: line 3, column 5:

    PL/SQL: Statement ignored

    your error message refers to vQUARTER, which is not listed in your code example.

    In addition, quarter is 2 characters such as defined in your code, but you ask to 6 characters in there, for example, 2016-1

  • [ADF, JDev12.1.3] What is the right approach to manage the Value property of a Date of entry through a bean?

    Hallo,

    I created a custom search form by dragging on the CIU af:inputText and af:inputDate.

    I have some difficulties in the treatment of af: inputDate CIU.

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    When the user clicks the button to search for the form of the search_action in the bean creates the query with parameters (identified by (?) because I am using SQL Server as DBMS).

    Then, I need programmatically check the values of af: inputDate CIU and then use them to define the query parameters.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    You could you kindly help me (better if give me a simple example)?

    Thank you

    Federico

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    Date type is correct.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    Well, if you need validate the date, then you will need validator (or check the value in managed bean)

    It goes the same for the converter.

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    In your beans, you will get the Date value, so no matter how it is displayed on the user interface.

    To date handling, you can use standard java api as java.util.Calendar

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    Use standard java api to calculate the new date, then assign accessor value in your bean (for example, in the constructor of the bean)

    Dario

  • How to assign the value based on the various buttons

    Hello
    I'm working on create/update page to date, who have two buttons, save and send. The two buttons save registration but two fields in OT be assigned values when you press "submit" button. If I set EOImpl (< nom_de_colonne >), how I'd get that affects? Or any other convenient way to implement?
    All information and any suggestions will be appreciated in advance.
    Thank you.
    Rudolph

    Hi, had
    Thanks for the quick response. I do not work on the courses page. It's all simple page to update. My drawing a 2 button, save and send. Both registers the update. Then click on the "Submit" button, I neet automaticall value for 2 columns, present the flag = O, application number = 'SSR - 1' before you save it, and the value must be stored in the DB table.
    Thank you.
    Rudolph

  • How to assign the value "ID or content dDocName" (property of the University Complutense of MADRID) Webcenter capture.

    Hello

    Could you please help me for the script for extracting Webcenter UCMS property in Webcenter Capture. I also have a requirement where I need to assign a value to the UCM property ' dDocName or content ID "of the capture of webcenter.

    Someone please help me with above scenarios.

    Hello

    Thanks for the reply. My requirement is, when check-in file to the AAU, it generates values to the property "docId" for the file that is unique. I need the value of the docId during validation webcenter capture processor. I solved this problem.

    I created a filter in the AAU for archiving profile. This filter is triggered whenever the Service factor of the AAU invoke. In this filter, I can get the value of "docID".

    Thank you.

  • How to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • assign the value in the variable

    Hello

    I use the 4.2 APEX and an Oracle 11g DB.

    I made an APEX Page where I have a text field should show the value of a SELECT statement. The name of text field is TEXTFIELD_3.

    SELECT anr IN: TEXTFIELD_3 FROM article 1 of the LIMIT;

    When I run the statement directly on the DB I get a value, but all running in my APEX Application, I get the error ORA-01403.

    You have a suggestion, why I get this error?

    Can you give more details please? What is the source of the text field? Version of the APEX? where you have used this "SELECT anr IN: TEXTFIELD_3 FROM article LIMIT 1" statement? check if the 'article' table or not, data?

    Thank you

    Lacombe

  • Assign the value of a table to a text field

    Hello

    I need assign value from a table to a text field, but the coordinates in the table are obtained from the concatenation of two values (determined according to the choice of two groups of radiobutton)

    How can I do?

    I get the correct text assigned to the "ADDRESS" text box directly and this work:

    DATATABLE_TEXT. RawValue = TABLE_1.A_2.B_3.rawValue;

    But, if I call the sentence by concatenating the values A_2 coordenate + '. ' + B_3, with the result of

    the selecction of radiobutton and does not work.

    I tried with this code:

    Formulari1.PAGE_1.OPTIONS_A::click - (JavaScript, client)

    COORDINATES.rawValue = "A_" + OPTIONS_A.rawValue + ".." B_"+ OPTIONS_B.rawValue;

    Formulari1.PAGE_1.OPTIONS_B::click - (JavaScript, client)

    COORDINATES.rawValue = "A_" + OPTIONS_A.rawValue + ".." B_"+ OPTIONS_B.rawValue;

    Formulari1.PAGE_1.button::click - (JavaScript, client)

    / / - This sentence works ok.

    DATATABLE_TEXT.rawValue = TABLE_1.A_2.B_2.rawValue;

    / / - this sentence does not work -

    COORDINATES.rawValue = "A_2.B_2";

    DATATABLE_TEXT. RawValue = TABLE_1. (COORDINATES. The value) .rawValue;

    -This sentence doesn't work-

    COORDINATES.rawValue = "A_2.B_2";

    DATATABLE_TEXT. RawValue = TABLE_1. (COORDINATES.rawValue) .rawValue;

    -----------------------------------------------------------------------

    the objects are:

    names grups and boxes option of option buttons:

    OPTIONS_A

    A_1

    A_2

    A_3

    OPTIONS_B

    B_1

    B_2

    B_3

    names of tables and rows/columns:

    TABLE_1

    HEADER_ROW

    A_1

    HEADER_COL

    B_1

    B_2

    B_3

    A_2

    HEADER_COL

    B_1

    B_2

    B_3

    A_3

    HEADER_COL

    B_1

    B_2

    B_3

    text fields named:

    CONTACT INFORMATION

    DATATABLE_TEXT

    button named gall:

    button

    ------------------------------------------------

    a captured image:

    table2.jpg

    You must use the function "resolveNode" to reference objects correctly.

    In the script executed by the button, place the following text:

    selectedRow var = TABLE_1.resolveNode("Page1.OPTIONS_A").rawValue;

    var selectedColumn = TABLE_1.resolveNode("Page1.OPTIONS_B").rawValue;

    txtTableValue.rawValue = TABLE_1.resolveNode(selectedRow_+_"."_+_selectedColumn).rawValue;

    The only other thing you need to do to set the value of your binding radio button A_1, A_2, etc. for each of the option buttons.

  • assign the value to a selection of the result of a query control

    I want to assign a value to my controls with the result of the query.

    It works for CFINPUT TEXT, but it does not work to SELECT

    I want to know are there any way tp affect my drop-down list value based on the result of questy.

    I have CFSTOREPROC as follows:

    < cfstoredproc procedure = "PSP" >

    < cfprocparam value = '#form. "IDNumber #" CFSQLTYPE = "cf_sql_integer" >

    < name cfprocresult = resultset "spResult" = "1" >

    < / cfstoredproc >

    < type CFINPUT = 'text' id = "txtIDNumber" value = "" #spResult.IDNumber # "/ >"

    I am able to name a TEXT of ENTRY CF as above the code value,

    < select id = "lstNumber" value = "#spResult.lstNumber #" > < / select >

    but it does not affect the value of my result of the query to SELECT entry.

    Is it possible to assign a value to the query result SELECTION control?

    I tried to use JavaScript that works if I pass a number, but it does not work if I pass a query result,

    Your help is very appreciated,

    Kind regards

    Iccsi,

    @Iccsi,

    My bad!  Yes, you will either need to the CFOUTPUT tag (that you commented out in your code) but without specifying a query or change the CFLOOP query CFOUTPUT = "Notes".  If one of these should work:

    OR

    -Carl V.

  • Check the box if the user enters the value field or text date input

    I have a business that, the rule of a JSF page with several components and groups. If the user enters the value in a date component or an input text component a selectOneCheckBox must be checked automatically. And even unchecked if the value of the field date field or text entry is deleted. I followed so far recommended for part of the ADF. I don't know what layer of the application of these rules should be applied.

    Please suggest how to get this implemented business rule

    Concerning

    You can implement the required functionality in the user interface layer.

    Here is the snippet of code for features:
    (1) page JSPX:




    Binding = "#{UIPageBean.inputDate} '"
    valueChangeListener = "#{UIPageBean.inputDateChanged}" / >

    Binding = "#{UIPageBean.inputNumber} '"
    valueChangeListener = "#{UIPageBean.inputNumberChanged}" / >

    readOnly = "true" simple = 'true '.
    Binding = "#{UIPageBean.CheckBox} '"
    partialTriggers = "id1 it1" / >

    (2) code Bean:

    public class UIPageBean {}

    Private RichInputText inputNumber;
    Private RichInputDate date. MinValue;
    box private RichSelectBooleanCheckbox;

    public UIPageBean() {}
    }

    {} public void setInputNumber (RichInputText inputNumber)
    this.inputNumber = inputNumber;
    }

    public RichInputText getInputNumber() {}
    Return inputNumber;
    }

    {} public void setInputDate (date RichInputDate. MinValue)
    this.inputDate = date. MinValue;
    }

    public RichInputDate getInputDate() {}
    Return date. MinValue;
    }

    {} public void setCheckBox (RichSelectBooleanCheckbox box)
    this.checkBox = checkBox;
    }

    public RichSelectBooleanCheckbox getCheckBox() {}
    return box;
    }

    {} public void inputDateChanged (ValueChangeEvent valueChangeEvent)
    this.checkBox.setSelected (false);
    If (this.inputDate.getValue ()! = null &)
    this.getInputNumber () .getValue ()! null = &.
    this.getInputNumber () .getValue () () ().equals("") .trim m:System.NET.SocketAddress.ToString is
    false) {}
    this.checkBox.setSelected (true);
    }
    }

    {} public void inputNumberChanged (ValueChangeEvent valueChangeEvent)
    this.checkBox.setSelected (false);
    If (this.inputDate.getValue ()! = null &)
    this.getInputNumber () .getValue ()! null = &.
    this.getInputNumber () .getValue () () ().equals("") .trim m:System.NET.SocketAddress.ToString is
    false) {}
    this.checkBox.setSelected (true);
    }
    }
    }

    Thank you
    Nini

  • Assign the value to the interactive report search string

    Hi guys,.

    I have an interactive report that has the text box 'Research report' usual. I have a text separate element called: P1_VPN on the report which is filled in when the user connects.

    What I would do is to have the text box 'Research report' must be assigned to the: P1_VPN as a default and the dataset returned to rely on this value.

    I'm looking for a way to pass the value in the text of the report item and clicking the "Go" button that is dynamically when the page is loaded, if it is possible?

    Thank you

    Hello

    Reading of: http://www.evernote.com/pub/sstryker58/Stews_Apex_tips#n=b5abf5b7-3ff8-48c2-8e60-a5038c14e0d5

    This explains how to switch a filter by using the URL - when loading the page of IR, the filter will be applied, but the user can then remove it if they wish to

    Andy

Maybe you are looking for

  • (Get Mail, write, address book etc) buttons disappeared

    All the top buttons disappeared (like getting mail, write, address book etc). How can I get back them?

  • Qosmio F10 - broken graphics card

    Hello I have a Qosmio F10, but unfortunately the graphics card is broken on it, if anyone knows if it can be repaired without having a new card mother 'expensive '! My warranty has expired at the beginning of this year so I'm worried about how much i

  • Satellite A200 - HARD drive replacement

    Hello I have a Toshiba Satellite A200 1IZ and I want to replace my drive hard because I have some bad sectors. I don't know if my motherboard supports SATA and which version, if I order a 7200 RPM, maximum capacity. All advice? Thank you

  • I bought Windows 7 in Asia and when I try to install it in the United Kingdom, it does not work.

    I have the product key that was purchased in Asia. When I used it under windows xp (UK), it did not work! What is the problem? original title: product key problem

  • Clipart

    Hello I recently started having problems when I download clip art from the clip art on office online. In the past of the pictures that were in the wmf format may be combined, separated, change colors... changed anyway you wanted. Now, everything is i