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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:35:04+00:00 2026-05-26T22:35:04+00:00

I am reading contents of a file and adding it as a row in

  • 0

I am reading contents of a file and adding it as a row in mysql db. The column in which the file contens will be added is a TEXT column.

There are multiple files that will be uploaded and it’s contents are extracted in a cronjob and added to the TEXT column. One row per file.

My files sometimes are empty. In that case, a row with no content is created.

Now, I need to retrieve this content in another cronjob and perform some activities. I would like to filter and retrieve only those rows where content exists. Like using where clause with LENGTH(TRIM(ContentCol)) > 0. Since it is a TEXT column, I am unable to use LENGTH & TRIM functions.

Also when I use LENGTH function, it show different length.. I could see 5, 1 etc. though there is no value in the row-cell.

How can I perform this criteria?

  • 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-05-26T22:35:05+00:00Added an answer on May 26, 2026 at 10:35 pm

    Well I use the function BIT_LENGTH(string); but only with short text data.

    This function only return the length of bits, I evaluate this like

    BIT_LENGTH(string) > 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading contents from JSON file and adding to div with unique IDs.
I am reading in a text file using FileInputStream that puts the file contents
I am reading file contents in perl by following code my @files = glob($PATH/*);
I am trying a to send a mail by reading contents from text file.
I am reading the contents of the file using fread into an char array.
I'm reading an xml file using Jaxb, now the contents of the xml file
I can display the contents of a file in a TextView by adding the
I'm creating a Junit test file for my CSVreader. I'm reading the contents of
I am reading the contents of a file into a 2D array. The file
I am opening file in binary mode using fopen(abhi.zip,rb); and reading contents from it

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.