Got that one two, thanks, this mail list saves time.

On 5/6/10, Jay A. Kreibich <j...@kreibi.ch> wrote:
> On Thu, May 06, 2010 at 12:31:26AM -0700, Matt Young scratched on the wall:
>
>> Can I create a virtual table mapped to an existing table in my
>> database?
>
>   You'll need to write a fair amount of code, but yes.
>
>> Does this let me alias a whole table?
>
>   It lets you do pretty much anything you want.  If all you want is a
>   static alias or logical mapping, a VIEW would be a lot easier.
>
>> Thinking out loud,
>> does this give me ability to write a query on the virtual table, then
>> remap the virtual table to a current table and execute the query?
>
>   By "a current table" I assume you mean one of a set of tables.
>
>   Still "Yes," although it is a lot more complex and a lot more
>   inefficient than that.  Whatever the problem is, I would try to look
>   for solutions involving JOINs and/or VIEWs before diving into virtual
>   tables.  Virtual tables are very powerful, but they're also somewhat
>   complex.
>
>    -j
>
> --
> Jay A. Kreibich < J A Y  @  K R E I B I.C H >
>
> "Our opponent is an alien starship packed with atomic bombs.  We have
>  a protractor."   "I'll go home and see if I can scrounge up a ruler
>  and a piece of string."  --from Anathem by Neal Stephenson
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to