Questions tagged as 'sqlite'

2
answers

Problem when getting an Item from the List view, when the Adapter is filled by a Cursor

In my main activity mainActivity I show a listview of the data of my local database in SQlite consulted through a class DataBaseHelper , where the database was created and a class SQLcontrolle where is the curso...
asked by 27.02.2016 / 22:15
1
answer

Error deleting a SQLite Database

Good I have a java program that creates a sqlite database when I finish the program I want the database to be deleted so that there is no record of it on the computer. I have the following code: public void borrarSQLite() { try {...
asked by 09.11.2018 / 17:27
2
answers

Attribute _id and id in Database

When creating a database either externally or using java code, we must create an attribute Primary key Autoincrement called _id . With which, if I have in my relational database a id_producto in a table called Pr...
asked by 09.11.2016 / 13:31
1
answer

How to modify the Sqlite Path

I can not change the path of SQLITE . I set up a database in android studio and the class that extends from SQLiteOpenHelper I have: public Constructor (Context ctx){ super(ctx, NombreBase, null, 1) }...
asked by 19.12.2017 / 04:06
1
answer

SQLite DO NOT erase in Cascade

I am developing an Android app in Kotlin and I have a table PERSONS that contains people and another table FACES that contains faces that I relate to people. The idea is that when you delete an entry of PERSONS , all the face...
asked by 20.04.2018 / 19:48
1
answer

How to Insert Date in SQLite

I have a query: I have a table in SQLite with this structure CREATE TABLE [Agenda] ( [Itinerario] VARCHAR(50) NULL, [Creado] TIMESTAMP NULL, [Fecha] TIMESTAMP NULL ) And I'm trying to enter rows with the following SQL statement:...
asked by 23.08.2016 / 19:01
3
answers

I get an error in the AUTOINCREMENT-AndroidStudio field

I want to create a database for a calendar and I need to create a field of type AUTOINCREMENT . The fact is that when I create the database in Android Studio with SQLite it underlines me and gives me the following error:...
asked by 19.12.2018 / 10:41
2
answers

Item RadioButton

If you could guide me how to achieve the following: I have a ListView and items that show all the data of my database in SQLite, I put a Radio button FIRMA = (RadioButton) findViewById(R.id.firma); and this is repeated in...
asked by 21.02.2016 / 23:27
1
answer

SQLITE problem when creating a table with two Foreign Key

I'm doing a project on Android with a table structure. But it turns out that the db does not create it correctly and I can not see what happens. It is about 4 tables with their relations between them, it lets me create the three fir...
asked by 16.10.2018 / 12:22
1
answer

How can I pass the value of a variable to the update function of sqlite3 in python

I would like to know how to pass data to the update function of sqlite 3: this is the code: conexion = sqlite3.connect("Db/Users.db") cursor = conexion.cursor() intem = self.lineEdit.text() cursor.execute('UPDATE Usuarios SET Contraseña ='...
asked by 27.07.2018 / 20:53