Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:00:16+00:00 2026-06-03T06:00:16+00:00

I have an insert query like this: INSERT INTO CONSUMER (CONS_ID_NO, LOCATION_ID, AREA_CODE, CONS_NO,

  • 0

I have an insert query like this:

INSERT INTO CONSUMER
            (CONS_ID_NO,
             LOCATION_ID,
             AREA_CODE,
             CONS_NO,
             CAT_CODE,
             KEY_ID,
             CONS_NAME,
             ADDRESS1,
             ADDRESS2,
             ADDRESS3,
             ADDRESS4,
             PHONE,
             DATE_CONNECT,
             FLAT,
             NO_OF_FLATS,
             BULK,
             OPENING_BALANCE,
             BALANCE_DATE,
             ROUTE_CODE,
             ROUTE_ORDER,
             METER_NO,
             METER_FIXATION_DATE,
             METER_OWNER,
             METER_WORKING,
             DISCONNECT,
             ALERT,
             LAST_READING,
             LAST_READING_DATE,
             LAST_READING_STATUS,
             PIC_AMT,
             PIC_KL,
             PIC_FROM,
             SC,
             MR,
             ARREARS,
             AS_ON_DATE,
             SCHEDULE_NO,
             MAIN_TYPE,
             SUB_TYPE,
             BILL_UPTO,
             CONS_SERVICE,
             CONS_SERVICE_ARREAR_CLEARED,
             PART_CONSUMER,
             BILL_ID_NO,
             READING_POSTED,
             METER_DIGITS,
             LAST_ADJUSTED_READING,
             LAST_ADJUSTED_DATE,
             LAST_ADJUSTED_STATUS)
VALUES      ('2112104945',
             '141',
             'CPW',
             '5225',
             'D',
             1946415,
             'ASHRAF PERILACODE
 & NASEEHA.K',
             'PERILACODEKP 1X/617A',
             'DHARSAN
 NAGAR',
             'PEROORKADA',
             '--',
             NULL,
             To_timestamp('2002-03-25
 00:00:00.0', 'DD-MON-RR HH.MI.SSXFF
 AM'),
             'N',
             NULL,
             NULL,
             52,
             To_timestamp('2002-03-01 00:00:00.0', 'DD-MON-RR
 HH.MI.SSXFF AM'),
             811,
             73,
             '10075256',
             To_timestamp('2010-11-12
 00:00:00.0', 'DD-MON-RR HH.MI.SSXFF
 AM'),
             'O',
             'Y',
             'N',
             'V',
             102,
             To_timestamp('2011-06-25
 00:00:00.0', 'DD-MON-RR HH.MI.SSXFF
 AM'),
             'W',
             55,
             13,
             To_timestamp('2011-06-25 00:00:00.0', 'DD-MON-RR
 HH.MI.SSXFF AM'),
             2,
             0,
             334,
             To_timestamp('2011-06-28
 00:00:00.0', 'DD-MON-RR HH.MI.SSXFF
 AM'),
             NULL,
             NULL,
             NULL,
             To_timestamp('2011-05-31 00:00:00.0', 'DD-MON-RR
 HH.MI.SSXFF
 AM'),
             NULL,
             NULL,
             'N',
             '3489554',
             'Y',
             5,
             102,
             To_timestamp('2011-06-25
 00:00:00.0', 'DD-MON-RR HH.MI.SSXFF AM'),
             'A'); 
  1. On executing this query on SQLDeveloper 3 (Oracle 11g), it is asking for the replacement value for &naseeha. How can this be prevented ?

  2. It is also giving me an error

    Error report:
    SQL Error: ORA-01843: not a valid month
    01843. 00000 -  "not a valid month"
    

The above given query is a part of a SQL file which I imported from my previous installation of Oracle 11g using the SQL Developer (that we get when we install the Oracle 11g, which is version 1 I think).

All the insert queries is giving the same error (Number 2).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:00:17+00:00Added an answer on June 3, 2026 at 6:00 am
    1. Referring to How to insert a string which contains an "&", this should work:

      SET DEFINE OFF
      
    2. Try replacing all occurrences of

      'DD-MON-RR HH.MI.SSXFF AM'
      

      with

      'yyyy-mm-dd hh24:mi:ss.ff3'
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an insert query that gets generated like this INSERT INTO InvoiceDetail (LegacyId,InvoiceId,DetailTypeId,Fee,FeeTax,Investigatorid,SalespersonId,CreateDate,CreatedById,IsChargeBack,Expense,RepoAgentId,PayeeName,ExpensePaymentId,AdjustDetailId)
I have this query that inserts rows, using a subquery like so: INSERT INTO
I have an insert query for MySQL that looks like this: INSERT INTO table
I have a query like this SET QUOTED_IDENTIFIER OFF SET DATEFORMAT 'mdy' INSERT INTO
I have code like this: require 'mysql2' @db.query(insert into clients (Name) values ('#{client}')) Can
If I have a query like this: INSERT INTO map SELECT 5, product_id FROM
I have a query that looks like this: Insert Into tblX (a,b,c) Select x
I have a query like below declare @str_CustomerID int Insert into IMDECONP38.[Customer].dbo.CustomerMaster ( CustomerName
I have to run a very simple query like this in SQLite3. INSERT OR
If I run a query like this: insert into table (unique_id, column) select (isnull(max(cast(unique_id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.