When I try to execute this 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";
I get:
ORA-01861: literal does not match format string
There is no problem with database connection because I can execute basic SQL commands.
What is the problem with this statement?
Related Posts:
- How to insert date values into table
- ora-06553 pls-306 wrong number or types of arguments in call to ‘ogc_x’
- ORA-00904: invalid identifier
- how to fix oracle ORA-01722 invalid number error
- ORA-00979 not a group by expression
- ORA-00907: missing right parenthesis
- How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?
- ORA-01843 not a valid month- Comparing Dates
- ORA-00918: column ambiguously defined in SELECT *
- Oracle error : ORA-00905: Missing keyword
- How do I limit the number of rows returned by an Oracle query after ordering?
- Oracle SELECT TOP 10 records
- Can a foreign key be NULL and/or duplicate?
- How to Select Top 100 rows in Oracle?
- ORA-12560: TNS:protocol adaptor error
- ORA-00972 identifier is too long alias column name
- Oracle Apex column link from LOV values
- PLS-00103: Encountered the symbol when expecting one of the following:
- What’s the difference between RANK() and DENSE_RANK() functions in oracle?
- ORA-00918: column ambiguously defined in SELECT *
- ORA-00918: column ambiguously defined in SELECT *
- Oracle – ORA-01489: result of string concatenation is too long [duplicate]
- What is it exactly a BLOB in a DBMS context
- “ORA-01438: value larger than specified precision allowed for this column” when inserting 3
- How do you create a temporary table in an Oracle database?
- Oracle “Partition By” Keyword
- Oracle SQL: Update a table with data from another table
- SQL selecting rows by most recent date with two unique columns
- ORA-06502: PL/SQL: numeric or value error: character string buffer too small
- Comparing Dates in Oracle SQL
- Convert timestamp to date in Oracle SQL
- How do I reset a sequence in Oracle?
- Update statement with inner join on Oracle
- MySQL equivalent of DECODE function in Oracle
- Oracle: If Table Exists
- DATEDIFF function in Oracle
- How to create id with AUTO_INCREMENT on Oracle?
- LEFT function in Oracle
- What is the difference between Views and Materialized Views in Oracle?
- How do I view the Explain Plan in Oracle Sql developer?
- ORA-01779: cannot modify a column which maps to a non key-preserved table
- ORA-01735: invalid ALTER TABLE option – Toad
- Unknown column in ‘field list’ error on MySQL Update query
- The wait operation timed out. ASP
- How to create Temp table with SELECT * INTO tempTable FROM CTE Query
- Using group by on multiple columns
- Efficiently convert rows to columns in sql server
- Nested select statement in SQL Server
- What’s the difference between VARCHAR and CHAR?
- How to split the name string in mysql?
- Sql Server equivalent of a COUNTIF aggregate function
- Column name or number of supplied values does not match table definition
- Simple PHP Pagination script
- CREATE VIEW must be the only statement in the batch
- SQL Server FOR EACH Loop
- SQL – HAVING vs. WHERE
- MySQL combine two columns into one column
- SQL Error: ORA-00913: too many values
- How to SUM two fields within an SQL query
- DateTime2 vs DateTime in SQL Server
- SQL Server Insert if not exists
- SQL Server: Invalid Column Name
- String or binary data would be truncated. The statement has been terminated
- Error converting data type varchar to float
- How to concatenate text from multiple rows into a single text string in SQL Server
- Count(*) vs Count(1) – SQL Server
- Arithmetic overflow error converting numeric to data type numeric
- Remove duplicate rows in MySQL
- “You tried to execute a query that does not include the specified aggregate function”
- How to write a SQL DELETE statement with a SELECT statement in the WHERE clause?
- How to round down to nearest integer in MySQL?
- MySQL error: key specification without a key length
- SQL: Two select statements in one query
- Check if MySQL table exists without using “select from” syntax?
- mysql update column with value from another table
- what is the difference between triggers, assertions and checks (in database)
- ‘NOT LIKE’ in an SQL query
- Replacing NULL with 0 in a SQL server query
- SQL Server dynamic PIVOT query?
- How to delete from multiple tables in MySQL?
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- What does Include() do in LINQ?
- SQL Server “cannot perform an aggregate function on an expression containing an aggregate or a subquery”, but Sybase can
- Get everything after and before certain character in SQL Server
- What are database constraints?
- Postgresql column reference “id” is ambiguous
- SQLite string contains other string query
- Cannot insert explicit value for identity column in table ‘table’ when IDENTITY_INSERT is set to OFF
- Sorting search results by taxonomy terms
- WordPress SQL LIKE request doesn’t work for fields with special symbols
- WordPress database error: You have an error in your SQL syntax
- Better way to migrate to server?
- Inner Join user tables to select users with roles
- $wpdb->prepare with LIKE returning blank array instead of rows
- WooCommerce database query : Get product category image path+name from thumbnail_id [closed]
- WordPress can I manually add columns in users table and display it in the default manage user plugin and registration form? [closed]
- Help me SELECT thumbnail from SQL and use
- Why is my insert row only inserting the final row from the loop into the database rather than just inserting one
- Creating a “forum” – showing last post or last commented post
- Replace Unwanted Space in Post Content URL