Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7867339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:41:14+00:00 2026-06-03T00:41:14+00:00

Is it possible to create a VIEW (not temporary view) in a Sqlite database

  • 0

Is it possible to create a VIEW (not temporary view) in a Sqlite database that has other databases attached to it?
The view should be able to access data from all databases via joined tables.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:41:16+00:00Added an answer on June 3, 2026 at 12:41 am

    No, the view must be temporary, otherwise an error will occur:

    sqlite> create view view1 as select * from db2.foo union select * from main.foo;
    Error: view view1 cannot reference objects in database db2
    sqlite> create temp view view1 as select * from db2.foo union select * from main.foo;
    sqlite> select * from view1;
    ...
    

    This makes sense since a temporary view is part of the automatically created temp database which only exists for the current process.

    EDIT:

    You can list the temporary tables and views (all stored in the automatically created temp database) this way:

    sqlite> .headers on
    sqlite> select * from sqlite_temp_master;
    type|name|tbl_name|rootpage|sql
    view|view1|view1|0|CREATE VIEW view1 as select * from db2.foo union select * from main.foo
    

    To list views only:

    select * from sqlite_temp_master where type='view';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do I suppose correctly that it is not possible to create view with parameters?
Is it possible to create a filter in a Drupal 6 View that is
Is it possible to create a trigger that will not be in a transaction?
Is it possible to create a view (not stored procedure) with dynamic column names
Is it possible to create a view that is bigger than the screen? I
Can anyone explain why it's not possible to create your own view controller hierarchies
Is it possible to create an sql statement that selects the week number (NOT
Is it possible to create an image with a link that also has a
Possible Duplicate: Create a UIViewController that contain a UIViewController I have a parent view
Is it possible to create a separate controller's action (method) for specific partial view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.