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 8478909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:52:41+00:00 2026-06-10T18:52:41+00:00

I encountered the following confusing problem: A DB table was updated through CSV file

  • 0

I encountered the following confusing problem:

A DB table was updated through CSV file and some KSH script:

#!/bin/ksh

moduleDir=$ACS_INSTALL/FMC_TER_AM_028/Database
logFile=$moduleDir/install_scripts/`basename $0`_$(date '+%Y%m%d_%H%M').log

(
  cp -ri $moduleDir/ntscripts/datafiles/* $PROVHOME/database/ntscripts/datafiles
  echo "\n***********************"
  echo "* New/Modified files: *"
  echo "***********************"
  find $moduleDir/ntscripts/datafiles -type f | xargs ls -l
) 2>&1 | tee $logFile

echo "\nInstallation of Database completed\n"

The update is equal (under equal I mean that the visual result is the same as the INSERT command below) to the following INSERT query:

INSERT INTO tp_nt_mapping (TARIFF_PLAN, SERVICE_TYPE, NETWORK_TEMPLATE, IN_CREATE, IN_DELETE)
VALUES (171, 'Postpaid', '11', '', '')

When I’m using the following SELECT command:

SELECT * FROM tp_nt_mapping ORDER BY tariff_plan DESC

I’m able to see the new inserted record, but when I try with any of the following SELECT queries, I’m not:

SELECT * FROM tp_nt_mapping WHERE network_template = 11 ORDER BY tariff_plan DESC
SELECT * FROM tp_nt_mapping WHERE network_template = '11' ORDER BY tariff_plan DESC

Any suggestions?

  • 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-10T18:52:42+00:00Added an answer on June 10, 2026 at 6:52 pm

    The value in network_template field isn’t just '11' but '11' || chr(13).
    So you have the carrige return char at the end.

    You can fix the data by doing:

    update tp_nt_mapping 
    set network_template = replace(network_template, chr(13), '')
    

    But better check why it was added on the first place….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I encountered the following problem after upgrading to the latest version 1.8.1 of data.table
I'm new to QT and encountered the following problem. Download returns an empty file:
I am in the process of changing my git-merge-workflow and encountered following problem: Up
I've encountered the following problem with jLine. We open the command prompt (both linux
We've encountered the following situation in our database. We have table 'A' and table
More than one time I have encountered the following problem when building code with
I'm learning C# and I encountered the following problem. I have two classes: base
I'm working on Ms Dynamics Crm 2011 development and I encountered following problem. My
I'm working on custom pagination system and encountered following problem. When one of the
I am working on this site and encountered the following problem when i opened

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.