Questions tagged [sqlite]
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
86,537
questions
0
votes
0answers
7 views
Pivoting SQLite With Variable Data
I have the following tables in SQLite.
CREATE TABLE IF NOT EXISTS "payouts" (
"id" INTEGER NOT NULL UNIQUE,
"amount" TEXT NOT NULL);
CREATE TABLE "orders" (
&...
0
votes
2answers
16 views
How to do delete button that delete one cell in collection view and row in sqlite in xamarin?
How to delete cell in collection view and row in sqlite?
I need to get from collection view primary key and i dont know how.
I want to have delete button on every view cell.
I have ended up with this:
...
0
votes
1answer
20 views
SQLITE: Merge tables from different databases with Primary Key Constraint
I want to concatenate/append tables from 2 different databases (database X and Y).
ATTACH "all\tab_X.db" AS db1;
ATTACH "all\tab_Y.db" AS db2;
INSERT INTO db1.PAYMENT SELECT * ...
0
votes
0answers
31 views
Store int array valuse as rows in sqlite database in c#
Hi i know almost everyone ask a simular question to solve this problem. ok i am building a app which gets data from an API. the api returnes a array of ints. as i am new to databases, i am trying to ...
0
votes
0answers
18 views
Python Django SQLite Database is Locked
I am using Python Django and trying to save some data in Admin panel but it throws an error
Please help to solve thisThanks
3
votes
1answer
411 views
Dapper with SQLite and C# Error “Insufficient parameters supplied to the command”
New Information since the original post. This code successfully retrieves an entity, which makes me think QueryMultiple maps differently than Query. Is that true?
using (var multi = sqlConn....
0
votes
0answers
4 views
No support for Alter of constraints on sqlite dialect, anyone? I get this error with “airflow db upgrade” or “airflow db init”
While using Airflow db upgrade or airflow db init, I get the following error even though render_as_batch=True in env.py.
quote No support for Alter of constraints in sqlite dialect.
Because of this ...
308
votes
9answers
280k views
Store boolean value in SQLite
What is the type for a BOOL value in SQLite? I want to store in my table TRUE/FALSE values.
I could create a column of INTEGER and store in it values 0 or 1, but it won't be the best way to implement ...
0
votes
2answers
29 views
How to convert syntaxt of query from mysql to sqlite3
I have the following query executed using pandas' read_sql method that works great when querying against a MySQL db:
sql = "SELECT * FROM semantic_groups sg join semantic_types st on sg.tui = st....
-1
votes
0answers
12 views
Updating a table with a sum of another table throws Incorrect number of bindings supplied error
I created a refresh database button in my web/flask form, but when I try to refresh, I get this error message:
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The
current statement ...
0
votes
0answers
13 views
Nested one-to-many tables SQLite-Net Extensions [duplicate]
I have 4 tables that I'm trying to create: Term, Courses, Assessments, and Notes. Term has a one-to-many relationship with Courses, and Courses has a one-to-many relationship with Assessments and ...
0
votes
1answer
50 views
+50
Dapper - creating objects with queries on database with one-to-many and many-to-many relationships
I have an Sqlite database, for a which a partial schema is:
In the code, classes representing the data are as follows (simplified):
public Book : Item
{
public ICollection<Tag> Tags { get; ...
0
votes
1answer
29 views
PYTHON: Strange error at the END of 'for' loop through dataframe
I'm writing a script that mines baseball statistics from a website and inputs them into SQLite database. This piece of code is where I'm dumping from one of my dataframes (hit_stats) into the largest ...
1
vote
1answer
527 views
Enabling Rtree on sqlite3 python module
Trying to run the following code:
conn.executescript("""
CREATE VIRTUAL TABLE Hashes USING rtree(
gives the following error:sqlite3 operational error no such module: rtree
To fix this,...
1
vote
1answer
37 views
SQLite Query Not Running in Java
I created a database using DB Browser for SQLite. Now I am trying to run queries to retrieve data from the database, and I have run into an issue. When I run the query in DB Browser, the query runs ...
0
votes
2answers
17 views
Sqlite - Update table rows based on another data in the row
I'm looking for the way how to update the empty values, based on the similar value from another row:
As you can see from the image: rowid with a number (331) contains the website value (tbe.com), but ...
0
votes
1answer
27 views
Problem install sqlite3 (..\src\database.cc(35): error C2248: 'Napi::Env::DefaultFini': cannot access private member declared in class 'Napi::Env'
I have a problem when trying install sqlite3 when create strap app
im try : yarn install sqlite3 and have try many way but still not work
Here is the log
Problem install sqlite3 when create strapi app ...
0
votes
0answers
99 views
+100
SQLite: Create Directory Structure Table from A List Of Paths
I want to create a directory structure table as described in this question where:
Directory = "Primary Key" id field, typically an integer
Directory_Parent = "Foreign Key" id ...
0
votes
1answer
13 views
“No such table” error after initial migration in Entity Framework Core
(Win7 x64, Visual Studio 2019, Entity Framework Core/SQLite/Tools v.5.0.2)
I follow this
https://docs.microsoft.com/ru-ru/ef/core/get-started/overview/first-app?tabs=visual-studio
tutorial on Entity ...
10
votes
6answers
9k views
NameError: name '_mysql' is not defined after setting change to mysql
I have a running Django blog with sqlite3 db at my local machine. What I want is to
convert sqlite3 db to mysql db
change Django settings.py file to serve MySQL db
Before I ran into the first step, ...
0
votes
1answer
41 views
SQLITE query GROUP BY with SUM Using Delphi and Zeos
I have an app created using Delphi XE3 accessing the SQLite database with Zeos Component.
A select command in SQLite that return 3 rows:
select p.descricao, pg.valor
from pagamento pg
inner join ...
1
vote
1answer
17 views
How do I specify that my condition is numeric. sqlite3
I have this query here that is supposed to compute the average ratings from a table called ratings which have a movie_id and a rating columns. but i have to compute the average of just the movies ...
0
votes
1answer
16 views
enable Alter of constraints in airflow 2.0? Im getting “No support for Alter of constraints in SQLite dialect” when running Airflow initdb
Airflow db init command in airflow 2.0
quote I get the following error- No support for Alter of constraints in SQLite dialect
1
vote
0answers
26 views
+50
Sqlite : duplicate column name:
While selecting some data from a sqlite db using the cli:
SELECT * FROM 'myData' WHERE (StateCode != 'NULL' AND IHV != 'NULL');
I got:
[1:36:30 PM][vscode-sqlite][ERROR] duplicate column name: LHV
...
0
votes
2answers
24 views
How to update recycler view in first activity while changing data in other activity?
I am trying to create a todolist application with sqlite. I have created a recycler view in main activity and a other activity to add a new todo. But when I add todo I want to refresh the recycler ...
0
votes
0answers
15 views
Exporting and Importing Sqlite Database in Flutter
I am pretty new to Sqlite and local databases in general. How would I go about exporting database to local storage on the device, and then importing it, all with 2 buttons, one would be export, other ...
0
votes
1answer
48 views
Add Null Values into Table, where there is a missing spot in a row of values
I have a table with how much time it took for a person to wait for the train from the moment they arrived until the train came. I want to say how many persons had to wait from 0 to 10 ms, 10 - 20 ms, ...
0
votes
0answers
56 views
SQLite3 version 3.34 - the callback function
I am using C# to run the sqlite3_exec API available in SQLite3.DLL. (care! this link will download)
I import the API as follows:
[DllImport("sqlite3.dll", EntryPoint = "sqlite3_exec&...
1
vote
1answer
15 views
Can't compile Go application using cgo through TDM-GCC on Windows
I've got the TDM-GCC-64 distribution installed, and set to the PATH variable. I still can't install the cgo distribution github.com/mattn/go-sqlite3. I had CygWin installed before I read the most ...
0
votes
0answers
9 views
How to use json functions provided by sqite3 in grafana with sqlite plugin?
I have a sqlite database, which I would like to use as a data source for my grafana panels. My table in sqlite has a column called execution_data which stores a json object. I have installed sqlite ...
173
votes
11answers
83k views
Get boolean from database using Android and SQLite
How can I obtain the value of a boolean field in an SQLite database on Android?
I usually use getString(), getInt(), etc. to get the values of my fields, but there does not seem to be a getBoolean() ...
0
votes
0answers
16 views
PYTHON / TKINTER - How to access variables in another class
I know this has been asked a bunch of times before, but i cannot work out how to apply the examples shown to my own code. I have only being developing 3 months, i am currently making a health app just ...
1
vote
1answer
1k views
Cursor window allocation of 2048 kb failed running with background service (runnable)
i have problem with get data from SQLite Cursor window allocation of 2048 kb failed using Thread background service
but if i run List branchList= DBTransaction.BranchList(); without Thread background ...
0
votes
0answers
22 views
How do i put multiple groups in one database?
I'm trying to make a centralized clinic management system of a university that has multiple campuses using django and react. im having trouble making a database that contains all the campuses with ...
0
votes
1answer
19 views
react-native-sqllite value not displayed
this.getDetails();
getDetails = () => {
let userDetails = [];
db.transaction((tx) => {
tx.executeSql('select * from users where role=?',['students'],(tx,results) => {
...
-1
votes
2answers
39 views
Some clients are unable to load SQLite.Interop.dll
There is an application that uses SQLite. Link to System.Data.SQLite and SQLite.Interop.dll (for x64 and x86 platforms) added statically, version 1.0.112.0. (all 3 files) (SQLite was added to the test ...
0
votes
1answer
18 views
How do I work with same SQLiteOpenHelper object in multiple activities in kotlin
I am making an app for my university project and I have stumbled upon a problem. I want to work with a DatabaseHelper that inherits SQLiteOpenHelper object that I have instantiated in activity1, in ...
1
vote
3answers
46 views
SQL get counts of unique values
Using sqlite3, how can I get the different "count" columns for this example in-memory database?
Using version 3.27.2
Example Database
CREATE TABLE events (
id1,
id2,
id3,
...
0
votes
1answer
17 views
SQLiteDatabase class cannot be resolved in coding IDE, how to set up it?
I am exploring the source code of an App. There is SQLiteDatabase used in the source code.
import android.database.Cursor;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
...
7
votes
2answers
2k views
Room delete multiple rows by WHERE IN clause not working
I want to delete multiple rows by their IDs in Android Room by DELETE FROM...WHERE...IN (...) clause. Below is the code:
ItemDao
@Dao
interface ItemDao {
@Query("DELETE FROM Item WHERE id IN (:...
0
votes
0answers
12 views
android.database.sqlite.SQLiteException: no such table: server_preferences (code 1)
I am uploading my app on playstore and this error comes from the Pre launch report. Below is the full stack trace :
FATAL EXCEPTION: Background tasks
android.database.sqlite.SQLiteException: no such ...
0
votes
1answer
42 views
SQL Query Update Calculation using 2 Tables
I have 2 tables: GBPAUD_TA and GBPAUD_DATA
The GBPAUD_DATA table sample is:
Date_Time Low High Open _1m_21
('2020-07-01 19:05', '1.8036', '1.8038', '1....
0
votes
0answers
8 views
Ionic3 - fastest way to syncronize big JSON file data with Sqlite
Good afternoon, I am creating an application in ionic using angular where currently it handles two connection modes: connected if the user has internet access and disconnected if they do not have it
...
0
votes
1answer
41 views
Entity Framework + SQLite inserting into wrong table
I have a .NET project using Entity Framework and SQLite.
There are 3 entities: Book, Article and User.
When the database is created, it creates the three tables corresponding to the 3 entities ...
94
votes
8answers
211k views
Opening database file from within SQLite command-line shell
I'm using the SQLite Command Line Shell. As documented, I can open a database by supplying it as an argument to the executable:
sqlite3 data.db
I cannot figure out how to open a database file from ...
0
votes
0answers
27 views
SQLite-Net Extensions - GetAllWithChildrenAsync not pulling everything
I am trying to use SQLite-Net Extensions to create a Relational Database. I'm running into an issue when trying to pull the Term object from the database. It successfully pulls over its associated ...
0
votes
0answers
9 views
I want to create a database in Tableplus using SQLite
I have a huge csv file (approx. 10'000'000 rows) and I want to create a database in Tableplus using SQLite. As I do not any experiences I would appreciate any possible guide or helps. I already tried ...
0
votes
1answer
22 views
Django ImageField null=True doesn't make blank field equal to NULL
I have a model with this field:
carousel_image = models.ImageField(upload_to='news/%Y/%m/%d, null=True, blank=True)
I was wondering why exclude(carousel_image__isnull=True) and other queries that ...
2
votes
2answers
471 views
error installing sqlite3 Public Keyring not found
What is wrong? How can I install it?
PS C:\Users\luism> gem install sqlite3
Temporarily enhancing PATH for MSYS/MINGW...
Installing required msys2 packages: mingw-w64-x86_64-sqlite3
warning: Public ...
1
vote
0answers
30 views
How can I extract all the parameters from an SQL-like line?
How can I extract all the parameters from an SQL-like line, in C++?
CREATE TABLE students ((id, integer, 1000), (name, text, 128), (group, text,50))
I want to have all this information stored in ...