Questions tagged as 'sqlite'

1
answer

Select by taking the difference between SQLite dates

I wanted a select that gave me the following sentence comparing two dates, for example: "2015-03-12 13:00"e "2015-03-12 14:15" . My return would be something like:    0 days left 1 hour 15 minutes to ... I need this in a sql retur...
asked by 21.02.2016 / 20:39
2
answers

Rails 4: Changing the "development" database from PostgreSQL to SQLite3 causes the rails server to give error

Hello. For some reasons, I had to change my DB "development" from PostgreSQL rails back to SQLite3. The page has stopped working and the error that appears in the rails server output is this: Started GET "/" for 127.0.0.1 at 2014-04-08 15:1...
asked by 08.04.2014 / 20:30
1
answer

Export MySQL database to SQLite

I usually use a database in applications that I develop locally. With mysql whenever I need to clone the application to another machine, I need to generate a dump of the database and import it to the local database again. I thin...
asked by 05.02.2014 / 17:57
2
answers

Suspend Trigger via conditional

I did not find a SQL statenment IF in SQLite and the closest was CASE , which is answering me, however I would like to suspend a trigger with a conditional and I believe it can only be done with IF / p> CREATE TRIGGER... BEG...
asked by 03.04.2018 / 23:08
1
answer

Save information in a SQLite and then upload to a JSON with webserive

I have read several tutorials on how to get a JSON and pass the information to a SQlite, however as I do the reverse, I get the application data already saved in SQLite and then transfer it to a webservice with JSON ... thanks right away     
asked by 20.09.2016 / 04:10
1
answer

C #, SQL, SQLITE How to return SQL statement from an action

I'm having a question in C # and in SQL commands, I'm currently using SQLite as the local database. In my application I make the insertion of records in the Database, so far so good, but I was wondering if there is any way to return the command...
asked by 16.06.2016 / 04:18
1
answer

SQLite trigger error

I'm trying to create this trigger in SQLite , but I do not know if it's possible. I have a tabea Remedios and a Manutenção . I want, when I have an insert in the Manutenção table, it does an update depending o...
asked by 20.11.2015 / 18:28
1
answer

What is the Journal file for Android

When I created a database in SQLite on Android, I noticed a file with the name of the table, followed by -journal. What is this and what is it for? I've been curious about this file having different permissions and using a table icon in an ex...
asked by 17.09.2014 / 09:36
1
answer

SQLite - count the primary keys that were not referenced as foreign keys

First, I am trying to count the primary keys of a table that were NOT referenced as foreign keys in another table. In addition, I want to filter the search by using the LIKE clause to display only those containing a certain letter of a give...
asked by 02.04.2014 / 22:30
1
answer

How to connect to SQLite database that already exists using PDO?

I want to connect to a database that already exists using PDO and sqlite in PHP, and here is the code I have: class Database extends PDO{ public function __construct(){ parent::__construct("sqlite: userquestion.db"); $th...
asked by 16.03.2015 / 02:42