Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SQLite是否支持模式(即Postgres意义上的模式)?_Sqlite_Schema - Fatal编程技术网

SQLite是否支持模式(即Postgres意义上的模式)?

SQLite是否支持模式(即Postgres意义上的模式)?,sqlite,schema,Sqlite,Schema,这是一个很难寻找的问题。我搜索了SQLite模式(显然不是很好),SQLite名称空间,以及SQLite命名数据库,但结果是空的。基本上,我有一堆名为info的不同表,在Postgres中,每个表都在一个单独的模式中(例如,student.info,teacher.info,等等)。我只是想知道SQLite是否有类似于Postgres模式的东西。SQLite使用模式名称来访问数据库中的对象 因此,在SQLite中,只有当出于某种原因已经有多个数据库文件时,才应该使用模式名称。 使用多个数据库来模

这是一个很难寻找的问题。我搜索了
SQLite模式
(显然不是很好),
SQLite名称空间
,以及
SQLite命名数据库
,但结果是空的。基本上,我有一堆名为info的不同表,在Postgres中,每个表都在一个单独的模式中(例如,
student.info
teacher.info
,等等)。我只是想知道SQLite是否有类似于Postgres模式的东西。

SQLite使用模式名称来访问数据库中的对象

因此,在SQLite中,只有当出于某种原因已经有多个数据库文件时,才应该使用模式名称。 使用多个数据库来模拟PostgreSQL样式的模式可能是可行的,但通常是个坏主意。(在他们的SQL方言中还有许多其他差异。)

dupe:,相关: