ORMLite: How to join two tables without foreign key

后端 未结 1 1246
谎友^
谎友^ 2021-01-15 13:13

I have to join two independent tables in sqlite. They don\'t have any foreign key relationship.

Example:

  • Table A has a field name
相关标签:
1条回答
  • 2021-01-15 13:47

    Unfortunately the short answer is "not at this time". You can certainly use the raw query functionality to support this:

    http://ormlite.com/docs/raw-queries

    Edit:

    This has [finally] been added ORMLite. It has been checked into trunk and will be in version 4.49. Here's the check-in on github:

    https://github.com/j256/ormlite-core/commit/b37914d76fbbbbbc70d473be1cf1b6de19b847f5

    0 讨论(0)
提交回复
热议问题