database-management

How do I open a sqflite database file in DB Browser for SQLite?

戏子无情 提交于 2020-05-30 09:40:37
问题 I have a Flutter/Dart application that I am coding using Android Studio. I use a database called envirodatabase.db with the sqflite package. I want to open the database in DB Browser for SQLite on my computer, but the only way it lets me do that is through saving a copy of the file, not the file itself. How do I open the original file in DB Browser for SQLite? Here is my Device File Explorer What I tried doing was I right clicked > Save As in the Device File Explorer where my app's database

How can I list all tables in a database with Squirrel SQL?

☆樱花仙子☆ 提交于 2019-12-20 17:34:26
问题 I use Squirrel SQL to connect to a JavaDB/Derby database on my desktop. I can run SQL queries. But how can I list all tables in the database? And preferably all column and column types. 回答1: You can do it easily from the GUI. After you open your session, click the Objects tab, then expand the tree. Expand the db, schema, and then table nodes, and you'll see all of your tables. If you click on a particular table node, a table will open to the right. By clicking the Columns tab, you can get the

Reorganizing columns by two column combination [duplicate]

心不动则不痛 提交于 2019-12-13 03:47:12
问题 This question already has answers here : merge list elements which are different dimensions r [duplicate] (2 answers) Closed 6 months ago . I am currently learning the tidyr and dplyr. Went in the following issue I am not sure how to appropiatly face: Imaging the following dataset: Factor 1 Factor 2 Year value A green 2016 1.2 A green 2017 1.9 B yellow 2017 3 B yellow 2018 8 An trying to obtain: Factor 1 Factor 2 Year.2016 Year.2017 Year.2018 A green 1.2 1.9 NA B yellow NA 3 8 I have basic R

What is “SQLiteDatabase created and never closed” error?

北战南征 提交于 2019-12-10 20:02:40
问题 I have closed the database in my adapter class, so whay is this error showingup on logcat but my application is not forcr closing but only error is showing on log cat..where i shuold have to close the database for ignoring this error...? my errors are...below..in which class i left for closing the database.....i took help from this link http://www.vogella.de/articles/AndroidSQLite/article.html ERROR/Database(265): Leak found ERROR/Database(265): java.lang.IllegalStateException: /data/data

Benefits or using XML over MySQL and vice-versa?

ε祈祈猫儿з 提交于 2019-12-08 09:38:14
问题 I am currently working on a project that was not made by me but it makes use of a lot XML files instead of MySQL in place of it. Because of that it makes me wonder if there is really any benefits of using XML over MySQL here. The scene is, the XML files are loaded only ONCE and used on the server for N things it does. The XML is only reload if the admin issue a command to the server to reload it. All the XML files together have an average of maximum 100 mb size. If you could as well give me a

Listing information about all database files in SQL Server

蓝咒 提交于 2019-12-03 06:26:11
问题 Is it possible to list information about the files (MDF/LDF) of all databases on an SQL Server? I'd like to get a list showing which database is using what files on the local disk. What I tried: exec sp_databases all databases select * from sys.databases shows a lot of information about each database - but unfortunately it doesn't show the files used by each database. select * from sys.database_files shows the mdf/ldf files of the master database - but not the other databases 回答1: You can use

How can I list all tables in a database with Squirrel SQL?

跟風遠走 提交于 2019-12-03 04:57:12
I use Squirrel SQL to connect to a JavaDB/Derby database on my desktop. I can run SQL queries. But how can I list all tables in the database? And preferably all column and column types. You can do it easily from the GUI. After you open your session, click the Objects tab, then expand the tree. Expand the db, schema, and then table nodes, and you'll see all of your tables. If you click on a particular table node, a table will open to the right. By clicking the Columns tab, you can get the column names, types, and other meta data. Or are you looking for SQL commands? Sometimes I noticed that

Listing information about all database files in SQL Server

蹲街弑〆低调 提交于 2019-12-02 19:53:19
Is it possible to list information about the files (MDF/LDF) of all databases on an SQL Server? I'd like to get a list showing which database is using what files on the local disk. What I tried: exec sp_databases all databases select * from sys.databases shows a lot of information about each database - but unfortunately it doesn't show the files used by each database. select * from sys.database_files shows the mdf/ldf files of the master database - but not the other databases You can use sys.master_files . Contains a row per file of a database as stored in the master database. This is a single

'strftime' is not a recognized built-in function name

删除回忆录丶 提交于 2019-12-02 08:51:00
问题 I am using Microsoft SQL Database Management Studio and it will not allow me to use the strftime() function to run a query. I have to create a table by months with new users and unsubscribers for each month. This is what I had essentially which creates the error: SELECT strftime('%m', createddate) AS 'Month', COUNT(createddate) AS 'Subscribers', COUNT(dateunsubscribed) AS 'UNsubscribers' FROM subscriber GROUP BY 1 ORDER BY 1; how else could I run this query without strftime() or how can I get

'strftime' is not a recognized built-in function name

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 04:36:06
I am using Microsoft SQL Database Management Studio and it will not allow me to use the strftime() function to run a query. I have to create a table by months with new users and unsubscribers for each month. This is what I had essentially which creates the error: SELECT strftime('%m', createddate) AS 'Month', COUNT(createddate) AS 'Subscribers', COUNT(dateunsubscribed) AS 'UNsubscribers' FROM subscriber GROUP BY 1 ORDER BY 1; how else could I run this query without strftime() or how can I get strftime() to work? strftime is a mysql function, and isn't available in Microsoft's sql-server . For