English 中文(简体)
“:模拟:数据库”中的表格
原标题:Tables in ":memory: database
  • 时间:2012-05-23 11:02:36
  •  标签:
  • sqlite

我有 : motory: 数据库 。 我想在数据库中创建 5 个表格。 哪个是最好的普通表格/ tmp 表格? 当我们关闭连接时, 表格会自动删除吗?

我正计划使用 sqlite_ 序列表来获取表格的最后一个插入代号 。 在 : momory: 数据库 中是否有 sqlite_ 序列表?

最佳回答

使用 : memory: 就像普通数据库一样, 带有普通表格。 一旦连接关闭或退出进程, 所有的数据和 schema 都会丢失 。

每当有带有自动列的表格时, sqlite_sequece 表格就会存在,然而,您只需使用 last_Indield_rowid() SQL 函数即可。

问题回答

暂无回答




相关问题
sqlite3 is chopping/cutting/truncating my text columns

I have values being cut off and would like to display the full values. Sqlite3 -column -header locations.dbs " select n.namelist, f.state, t.state from names n left join locations l on l.id = n.id ...

Entity Framework with File-Based Database

I am in the process of developing a desktop application that needs a database. The application is currently targeted to SQL Express 2005 and works wonderfully. However, I m not crazy about having ...

Improve INSERT-per-second performance of SQLite

Optimizing SQLite is tricky. Bulk-insert performance of a C application can vary from 85 inserts per second to over 96,000 inserts per second! Background: We are using SQLite as part of a desktop ...

Metadata for columns in SQLite v2.8 (PHP5)

How can I get metadata / constraints (primary key and "null allowed" in particular) for each column in a SQLite v2.8 table using PHP5 (like mysql_fetch_field for MySql)? sqlite_fetch_column_types (OO:...

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签