field definition date...

Hi all

I installed Oracle 10 g version 1 server and I set up a couple of tables.
I was able to create all the tables with content except one.
With this last table I encounter the following error.

To give a better explanation of the situation as a whole, I surround of everything that I did.

-I first created a table named sessions:
SQL-> is invites it that I use to enter my DDL and DML commands

SQL >
(Sessions) CREATE TABLE
SNO SMALLINT NOT NULL,
sdate DATE NOT NULL,
sins_pno SMALLINT NOT NULL,
sloc_cono SMALLINT NOT NULL,
sroom TANK (8) NOT NULL,
sorg_cono SMALLINT,
skind char (1) NOT NULL,
sincomes DECIMAL (9, 2) NOT NULL,
s tank (1),
s_cid tank (4) NOT NULL
);

-Were asked to describe the table to give you a preview of the table;
SQL > describe sessions;

output:

Sessions TABLE
Name Null? Type
----------------------------------------- -------- ----------------------------
SNO NOT NULL NUMBER
SDATE NOT NULL DATE
SINS_PNO NOT NULL NUMBER
SLOC_CONO NOT NULL NUMBER
SROOM NOT NULL CHAR (8)
NUMBER OF SORG_CONO
SKIND NOT NULL CHAR (1)
SINCOMES NOT NULL NUMBER (9.2)
S CHAR (1)
S_CID NOT NULL CHAR (4)

-I then changed the setting of the sdate

SQL > ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD ";

output:
Modified session.

-I wanted to and then insert the following line into the table

SQL >
INSERT INTO sessions VALUES (1, ' 2005-01-12', 1, 3, 'C', 3, 'p', 4730.00, NULL, '7850');

output:

ORA-01861: literal does not match the format string




Details:
INSERT INTO sessions VALUES (1, ' 2005-01-12', 1, 3, 'C', 3, 'p', 4730.00, NULL, '7850')
Error on line 1
ORA-01861: literal does not match the format string

Issues related to the:
-What I am doing wrong?
There's something that I am missing?
-Need information more?

Kind regards

Herman

I do not know what is happening here, it seems strange, but try to the following syntax:

INSERT INTO sessions VALUES ( 1 , date '2005-01-12' , 1 , 3 , 'C' , 3 , 'p' , 4730.00 , NULL , '7850' ) ;

Tags: Database

Similar Questions

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

  • Clear a field of data card/CDO

    Hello

    We are working on sending emails that will have a merge field to a data card/CDO object that is sometimes filled out and sometimes not; merged field of emails are sent through program generator when merging field no those are batched. After the merged field email is sent from the Builder program, we want to clear this field on the data card, so that if we batch email from contact with another email, the merger of field will be empty and not present information completely foreign to the emailed batch. Is it possible to do in E10? I can't find an option for it in the program generator. The only work around us would think has been implemented the merger of field as a piece of dynamic content and add a contact field that gets checked when the merger of field CDO / Data Card is necessary and not controlled when it's not like this can be done in the program generator.

    Hi Allan,

    If your goals is to update the field and future data communications player card... I think that there are few options, but the one I can suggest the use of the program generator.

    In the program generator.

    Create a program that takes the contacts it is a member.

    1. check if the email you want to send using email that address data slag is sent? If Yes

    2. take contact with Cloud connector for submit and add static value as empty (Leavve it blank)

    Form...

    3. create the form and map all data fields to a custom form to this exact object with a value field empty

    4. use and field to future communications drive additional Fusion by email.

    I would like to know if this helps or you are looking for.

    Thank you

    Amit

  • How to fill a field of date with today's date when the signature field is signed?

    How to fill a field of date with today's date when the signature field is signed? In the LCD, I insert a signature field and a date field, what parameters in these two fields are necessary to make this work? Is the date field, the value calculated? I tried different JS suggestions I found, but none work. In the form, I named the signature ClaimSignature field and the date in the ClaimSigDate field.

    The thought of her with a little help. In the script editor window, I selected the postSign event and added the following JS:

    Form1.Page1.ClaimSignature::postSign - (JavaScript, client)

    var date = new Date();

    var day = date.getDate ();

    var month = date.getMonth () + 1;

    var monthstring = (month, 10?) ('0' + month: month)

    year var = date.getFullYear ();

    var = year DateString + '-' + monthString + '-' + (day< 10="" "0"="" +="" day="" :="">

    ClsimSigDate.rawValue = dateString;

    I hope this helps someone else save time.

  • Difference of field calculation date

    Hi all

    I am new to Adobe and Java script so apologies if this has already been answered elsewhere - I was not able to find it if it has.

    I want to calculate the difference between two date fields in hours and minutes on a form.

    I have two fields, the Date format (dd/mm/yyyy hh: mm), a start and end date and I want the difference between them at the time in the format hh: mm.

    Can someone help me with the script for this? What I have so far is:

    var strStart = this.getField("StartTime").value;

    var strEnd = this.getField("EndTime").value;

    if(strStart.Length || strEnd.Length)

    {

    var dateStart = util.scand ("mm/dd/yyyy hh: mm", strStart);

    var dateEnd = util.scand ("mm/dd/yyyy hh: mm", strEnd);

    diff var = dateEnd.getTime () - dateStart.getTime ();

    One day = (24 hours) x (60 minutes/hour) x

    (60 seconds/minute) x (1000 milliseconds per second)

    var oneMin = 60 * 60 * 1000;

    var minutes = Math.floor (diff/oneMin);

    Event.Value = util.printd("HH:MM",mins);

    }

    But it does not work...

    Mary

    Got it - Thanks for your help - really appreciate it.

  • How can I determine which text fields contain data?

    Although it is a sad testament to my programming skills, I'm little embarrassed because I'm only doing this sort of thing maybe once every two or three years.  I am using FormCalc (mainly b/c I'm still learning Javascript and this form had already been written in FormCalc).

    Here's the problem:

    I have three text fields (Textfield1, Textfield2, Textfield3).

    I created three variables (var1, var2, var3) and initialized to 0.

    To determine how many fields containing data, I used the if/then/else statements:

    If (Textfield1.rawValue == "") then

    var1 = 0

    on the other

    var1 = 1

    endif

    Textfield2 and Textfield3 have similar statements (respectively using var3 and var2 variables).

    To test the code, I have a message box returns the sum of var1 + var2 and var3.  With NOTHING entered into all fields of text, I expect him back a sum of 0, but it returns the sum of 3!  If I enter data in only one or two of the fields, yet once it returns a value of 3.

    I tried the initialization of the value of the Textfields (Textfield1.rawValue = ""), but I always get a value of 3.

    This is probably a simple programming error, but still, I'm not a developer.  Any help would be appreciated.

    I think that you may need to modify your code for: (replace the "with the null value). Change of FormCalc to Javascript

    If (Textfield1.rawValue == null) then

    var1 = 0

    on the other

    var1 = 1

    endif

  • How can I update form field with data using "on Blur.


    Perhaps also very easy for all the experts out there that you but I'm trying to update a form field with data in another field in the form when they come out the first form field.

    Basically creating a "billing" and a form "shipping" I want to be updated automatically.

    Any help would be extremely Grateful.

    Thank you

    Steve

    He does!

    shipFirstNameText.value = this.value

    It worked

  • Fill a field of Date format

    ODI, I'm trying to use a command sysdate to fill a field of Date format.
    As a result, I get the data in the table: June 17, 2009 * 00:00:00 *.
    But I want to see the Date and time.
    When you run the command SELECT to_char (sysdate, 'hh24:mi:ss of mon-dd-yyyy') FROM dual; I see 16 June 2009 20:16:09

    Why?

    ---
    Gelo

    I don't see why does not work...

    Please, what is the version of oracle target?

    Just to be sure, on the date fields, try to use, to target you mapping, the command:

    TO_DATE (to_char (sysdate, 'ddmmyyyy hh24miss'), "ddmmyyyy hh24miss")

  • Display the role name in the field "descriptive data.

    Hello

    According to the requirements of the standard, we have to show the role name in the "Description" column in the resource profile screen.
    Currently, his watch an orc_instance_key number random.

    We can map the attribute name of role to 'descriptive data', so that the name of the role is displayed in the column?

    Help, please.
    Kind regards.

    The role name field is available in the form of process? If Yes, go to design console open your definition of process and then click descriptive field map select role name.

  • Left click will get the cursor in the field of data entry

    When I left click in a data entry field will not come the cursor upwards and I can't enter data. The left click works normally at any other time. I use a Dell Latitude D830 laptop. Everything works normally until today

    Hello

    • Where does this happen?
    • What were the changes made before the show?

    You can collect screenshots of color 256 and transfer it to the http://skydrive.live.com/ using your Live ID and I'll check it:

    Screenshot

    ========

    1. press the button print screen (print screen) on your keyboard.

    2. click on the "Start" menu, type "mspaint" in the search bar and press ENTER.

    3. in the Paint program, click on the "Edit" menu, click on 'Paste', click on the 'File' menu and click 'save '.

    4. the dialog box "Save as" appears. Type a file name in the "filename:" box, for example: "screenshot".

    5. make sure that "JPEG (*.)" JPG; *. JPEG; *. JPE; *. JFIF)"is selected in the box 'Save as type', click Desktop in the left pane, and then click"Save ".

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

  • Cannot find field 'publication Date' in the music of file properties

    Hi, I have a file with about 4000 music files (mp3) which currently displays a field 'year '. Some of the titles is not an entry and many of them have bad entered year, which isn't a problem, it means simply that each correcting entry. But when I right click from the upper part of one of the columns (where the detail for this column type is indicated) there is a list of all possible areas of this file and used ones have a check mark to the left. At the bottom of the menu is an option «More...» ». When I click on a new box comes up, 'Choose details' and scroll through a list which is a field "Date of publication", and that this will be much more useful to me than the field 'Year' I clicked and a new column "Date of publication" is displayed. Now my problem! ... When I go into the properties of the track and the 'Details' there is no sign of the field "Date of publication" anywhere. Can anyone tell me why or how I can put in the information I want?

    Download and install MP3tag - the universal tag editor. This is a brilliant application to edit and manage your music files

    MP3tag - the universal tag editor
    http://www.mp3Tag.de/en/

    Its interface is as simple as it could get. The songs do a right-click and select "Mp3tg" to open the Editor menu.

    Man is the only animal that laughs and cries; because it is the only animal that is struck by the difference between what things are and what they should be.

  • Persistent componement definition data

    Hello

    I use a definition of componnement of unlimited entry of object in my application, but when the application is near, all objects are deleted. I use some QSettings to store a lot of data, but how to keep a container?

    So this is an example of my application:

    hand. QML

    page{
        container{
            id: root
    
            textField{
               id: input
            }
            button{
                text: "add"
                onClicked {
                     var createdControl = new.createObject();
                 root.add(createdControl);
                 createdControl.text = input.text
                }
            }
        }
        attachedObjects: [
             ComponentDefinition {
                 id: new
                 source: "new.qml"
             }
         ]
    }
    

    and with another qml file, I add what I want.

    I just have this when I open the app, it'll be the same previous in the root container.

    Hi all and thanks for your reply!

    I found my answer on a sample here

    This is a sample Blackberry app and they use serialization to store objects.

    bool FileStorage::serializeDataModel(int lastID, GroupDataModel* model, QDataStream* stream)
    {
        // This is a simple serialization function.
        // For more info on dealing with complex types,
        // or incorporating file versions see "Serializing data type in Qt"
        // http://qt-project.org/doc/qt-4.8/datastreamformat.html
        bool addedData = false;
    
        *stream << lastID;
        if (stream->status() == QDataStream::Ok) {
            for (int i = 0; i < model->size(); i++) {
                Person *person = (Person *) model->children()[i];
                *stream << person->customerID() << person->firstName()
                        << person->lastName();
                if (stream->status() != QDataStream::Ok) {
                    return addedData = false;
                }
            }
            addedData = true;
        }
    
        return addedData;
    }
    
  • My own field implementation date

    Due to some problems of compatibility, I can't use the date field defalut blackberry. so now, I have to create field date my won. I would appreciate if someone could give some suggesion or links to a similar implementation. I need to do this for 4.2.1...

    This mark as resolved, another thread started with more details...

  • Add field days date of pfr

    Hello

    I am unable to find the solution for this in one of the forums and great to look at the resolution for the date field

    I'm trying to get days extra (5) added to the field date of PFR using firepartialaction and set this new date field using attribute like below

    If (herhelddate".equals (pageContext.getParameter (EVENT_PARAM))) {" "}

    Date Level1HerHeld = (Date) pageContext.getParameter ("Level1HerHeld");

    System.out.println ("value entered Level1HerHeld" + pageContext.getParameter ("Level1HerHeld"));

    Calendar c = Calendar.GetInstance ();

    c.setTime (Level1HerHeld.getValue ());

    System.out.println ("utilCalendar Start:" + c.getTime ());

    c.Add (Calendar.DATE, 5);  number of days to add

    SqlTimeStampEnd = new Timestamp timestamp (c.getTime () .getTime ());

    Date tatDate;

    try {}

    tatDate = new Date (sqlTimeStampEnd);

    } catch (SQLException e) {}

    throw OAException.wrapperException (e);

    }

    UVO.getCurrentRow () .setAttribute ("LevelIiDecisionDueDate", tatDate);               

    }

    I am not able to get this working... Can someone help me on this. ?

    Thank you

    MK

    Have you checked the imports specified in my blog?

    replace "import com.sun.jmx.snmp.Timestamp;"

    avec " import java.sql.Timestamp; "

    Let us know what happens after this change.

    See you soon

    AJ

  • ODI: Mapping SQL Server datetime field to Date ORACLE


    Hello

    I tried map a datetime (SQL Server) field to a Date field in my intermediate Oracle DB table.

    The format of the source (SQL Server) is 2014-08-12 15:04:48.927 and in mapping for the intermediate table, I use the function TO_TIMESTAMP (sql_field_name, 'YYYY-MM-DD HH24:MI:SS.ff')

    When executing the interface, it fails with the error: ORA-01843: not one month valid

    Is there an error in the conversion?

    Any help will be appreciated.

    Thank you.

    Hello

    Thanks for your help.

    @Mahak VARCHAR2 conversion also did not work, kept getting is not not a month error invalid. In my view, that move data between SQL Server and Oracle there are some questions in the format and precision.

    I have now resolved the issue. It worked by using the CONVERT (DATETIME, field_name) SQL Server function in the map and put it to run on the Source (a MS SQL Server DB) instead of the target (which is an Oracle DB).

Maybe you are looking for

  • How can I clear the great screen?

    The impressive screen shows a few sites I visited that I would like to delete. How can I do?

  • voice problems

    My friends can't hear my voice

  • G550 Ram problem

    Whats up, my g550 came with 4gigs DDR3 1066, Cpuz, I installed and it has shown that it works @ 399 Mhz?, I think it should work faster, since it is a Ram 1066..., here is the photo [IMG] http://I39.Tinypic.com/5xq648.PNG [LINE] Need help please: /.

  • Why my printer HP Deskjet D1415 printing used series?

    The USB cable is connected and turned on my camera. Also, I've always had a problem (even now) my turn printer off, even if I press and hold the button several times. I reinstalled the printer also program. What because my ink level is very low? Or i

  • emails get automatically deleted

    My computer crashed a few months ago, so I had to buy a new 1 and since my emails are automatically deleted after a few days and I'm not the one who is to remove... How can I change this in simple terms please and thanks :)