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

  • SEARCH
  • Home
  • 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 9086795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:34:28+00:00 2026-06-16T21:34:28+00:00

Is there a documentation/specification about Sqlite3 that would describe would is supposed to happen

  • 0

Is there a documentation/specification about Sqlite3 that would describe would is supposed to happen in the following case?

Take this query:

var cmd = new SqliteCommand("SELECT Items.*, Files.* FROM Items LEFT JOIN Files ON Files.strColName = Items.strColName");

Both Items and Files have a column name “strColName“. If an entry exists in Files, it will be joined to the result, if not, it will be NULL.
Let’s assume I always need the value of strColName, no matter if it is coming from Items or from Files. If I execute a reader:

var reader = cmd.ExecuteReader();

If there is a match in Files, reader["strColName"] will obviously contain the correct result because the value is set and it is the same in both tables. But if there wasn’t a match in Files, will the NULL value of Files overwrite the non-NULL value of Items?

I’m really looking for some specification that defines how a Sqlite3 implementation has to deal with this case, so that I can trust either result.

  • 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-16T21:34:29+00:00Added an answer on June 16, 2026 at 9:34 pm

    SQLite has no problem returning multiple columns labelled with the same name.
    However, the columns will always be returned in exactly the same order they are written in the SELECT statement.
    So, when you are searching for "strColName", you will find the first one, from Items.

    It is recommended to use explicit column names instead of * so that the order is clear, and you can access values by their column index, if needed (and you detect incompatible changes in the table structure).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there documentation/utility that shows the default control template of a given control? I'd
I'm trying to find the specification that Vim uses for the documentation files (which
Is there documentation that provides/explains all possible jQuery filter parameters allowed? Some of the
I find this whole GetSchema thing awfully complex. Is there any decent documentation for
I saw in PHP's documentation that there are two ways to format the year
I have a question about the FOSUserBundle for Symfony 2.0.x. In there documentation you
Is there a documentation system which is simple, will generate some friendly, hyperlinked documentation,
Is there official documentation on the Python website somewhere, on how to install and
According to the documentation : There is no way to block signals temporarily from
In the pickle module documentation there is a snippet of example code: reader =

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.