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

  • Home
  • SEARCH
  • 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 8769345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:19:06+00:00 2026-06-13T17:19:06+00:00

Is there a pure sqlite request to find a string in a database ?

  • 0

Is there a pure sqlite request to find a string in a database ?

With a bit of shell, I can extract the schemas from the tables:

for i in *sqlite; 
   do sqlite3 $i ".tables"
   | grep -Eoh "[^ ]+" 
   | while read t; do 
          echo -n "$i:$t  ";
          sqlite3 $i '.schema "'"$t"'"';
   done;
echo;
done

Then I could find which column has the type TEXT, and make a request.

But is there a pure SQL way to do this in a terminal ?

  • 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-13T17:19:07+00:00Added an answer on June 13, 2026 at 5:19 pm

    TLDR; To dump a sqlite db to a file called dump.sql

    sqlite3 some.db .dump > dump.sql

    SQLite is designed as an embedded database and therefore does have only extremely basic programming capabilities (it has triggers, but no control logic like if or loops).
    So it is not possible to do anything dynamic in SQL – the result of PRAGMA table_info cannot be directly used in SQL queries.

    A very quick and dirty way to search everywhere in a database is to show all contents with .dump and then just grep that. However, this isn’t actually quick because searching indexed columns would be faster in SQL.

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

Sidebar

Related Questions

The quick question: is there a pure PHP library that can extract a frame
Is there a pure-Java equivalent to <jsp:forward page=... /> that I can use within
Is there a pure-java way of setting the android:button attribute? My use case is
There are a few examples on unobtrusive events for pure JS. Most of questions
Is there a way to use pure html-code to display inside a frame instead
Is there a way to shift focus to a div by default through pure
Is there a Pythonic way (I mean, no pure SQL query) to define an
Short version: In pure Java EE 6, is there something like Spring's Authentication Processing
I'm wondering if there is a big difference when loading graphics made in pure
All of the pure functional languages are strong typed. Is there any link between

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.