1
Antworten
Ich habe die folgende Tabelle: CREATE TABLE match( match_id NUMBER(4,0), match_date DATE, attendance NUMBER(6,0), stadium_name VARCHAR2(40), tournament_id NUMBER(3,0), CONSTRAINT match_id_pk PRIMARY KEY(match_id), CONSTRAINT match_stadium_name_fk FOREIGN KEY(stadium_name) REFERENCES stadium(stadium_name)); Ich versuchen, die folgende Zeile einfügen: INSERT INTO match
3
Antworten
Wenn ich versuche, führen Sie den folgenden code, es gibt mir eine java.sql.SQLException: ORA-01861: literal does not match format string Fehler. Ich versuche zu kopieren, die Spalte Werte aus customer1_details Tabelle customer2_details Tabelle. Der Spalten-Datentyp, die ich
4
Antworten
Wenn ich versuche, führen Sie dieses snippet: cmd.CommandText = "SELECT alarm_id,definition_description,element_id, TO_CHAR (alarm_datetime, 'YYYY-MM-DD HH24:MI:SS'),severity, problem_text,status FROM aircom.alarms WHERE status = 1 and TO_DATE (alarm_datetime,'DD.MM.YYYY HH24:MI:SS') > TO_DATE ('07.09.2008 09:43:00', 'DD.MM.YYYY HH24:MI:SS') order by ALARM_DATETIME desc"; Bekomme
2
Antworten
Wie kann ich umwandeln dieser string date, datetime in oracle. 2011-07-28T23:54:14Z Mithilfe dieser code wirft einen Fehler: TO_DATE('2011-07-28T23:54:14Z', 'YYYY-MM-DD HH24:MI:SS') Wie kann das getan werden? Error report: SQL Error: ORA-01861: literal does not match format string 01861.