Re: [sqlite] Temporary Tables

2013-10-10 Thread Igor Tandetnik

On 10/10/2013 1:16 PM, John wrote:

Do you need to/should you drop temporary tables when you are done with them?


You may. If you don't, the temp db and all tables in it will be deleted 
when you close the connection.

--
Igor Tandetnik

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Temporary Tables

2013-10-10 Thread John
Do you need to/should you drop temporary tables when you are done with them?

Thanks.
John
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Temporary tables

2006-05-01 Thread Unit 5
In the application I am working on, it looks like I
would be creating some temporary tables as part of
complex sql statements.  I am thinking of keeping
these temp tables in a separate database file so that
access to the main tables are not affected.

I would appreciate any feedback, whether this would
increase performance, or if it would just create extra
work for me.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [sqlite] Temporary Tables

2006-03-06 Thread Jay Sprenkle
> > > Can anyone help me with creating temporary tables in place of the views,
> > > which are available during runtime, which have the same fields and data
> > > as my view such that when one table is updated, the results are appended
> > > to the temporary table
> >
> > Why not just insert the content of the view into the temp table?
> >
> > insert into tmp_view_1
> >   select * from view_1

Temp tables will not be updated unless you do it manually.
You might talk to whoever is providing your software to connect the
report writer
to the database and ask them why views don't seem to work.


Re: [sqlite] Temporary Tables

2006-03-06 Thread Roger
The reason i am using views is that these tables change very often so if
i create the temp table, i do not know if it will be updated after the
original table is updated

On Mon, 2006-03-06 at 07:56 -0600, Jay Sprenkle wrote:

> > Can anyone help me with creating temporary tables in place of the views,
> > which are available during runtime, which have the same fields and data
> > as my view such that when one table is updated, the results are appended
> > to the temporary table
> 
> Why not just insert the content of the view into the temp table?
> 
> insert into tmp_view_1
>   select * from view_1


Re: [sqlite] Temporary Tables

2006-03-06 Thread Jay Sprenkle
> Can anyone help me with creating temporary tables in place of the views,
> which are available during runtime, which have the same fields and data
> as my view such that when one table is updated, the results are appended
> to the temporary table

Why not just insert the content of the view into the temp table?

insert into tmp_view_1
  select * from view_1


[sqlite] Temporary Tables

2006-03-06 Thread Roger
Hello everyone.

I am using sqlite to create a web application. I am currently in the
process of writing reports using Agata.I had created views because i had
some tables whose rows i had to concatenate in order for the reports to
make any sense.

But the problem i have now is that Agata does not want to see or query
from the views. 

Can anyone help me with creating temporary tables in place of the views,
which are available during runtime, which have the same fields and data
as my view such that when one table is updated, the results are appended
to the temporary table


Re: [sqlite] Temporary tables and locking

2005-09-15 Thread Edward Macnaghten
Temporary tables are limited to an individual connection and are deleted 
when the connection closes.


You should not be accessing the same connection by two different 
threads, if you do then you must not do so simultaneously but to use a 
MUTEX lock.  With that in mind any locking on the temporary table is moot.


Eddy

Brandon, Nicholas wrote:


Hi

I don't think I fully understanding the locking strategy with temporary
tables. The documentation at
http://www.sqlite.org/cvstrac/wiki?p=MultiThreading suggests that Temporary
tables are not locked like the normal database.

If you can read and write to temporary tables and their is no locking
mechanism, then I assume the scope of a temporary table is restricted.

Is the scope of temporary tables within a thread or a process?

Regards
Nick


This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.


 





[sqlite] Temporary tables and locking

2005-09-15 Thread Brandon, Nicholas

Hi

I don't think I fully understanding the locking strategy with temporary
tables. The documentation at
http://www.sqlite.org/cvstrac/wiki?p=MultiThreading suggests that Temporary
tables are not locked like the normal database.

If you can read and write to temporary tables and their is no locking
mechanism, then I assume the scope of a temporary table is restricted.

Is the scope of temporary tables within a thread or a process?

Regards
Nick


This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.



Re: [sqlite] Temporary tables versus nested queries

2005-01-17 Thread Kurt Welgehausen
> I believe it reevaluates the subquery for each row of the outer...

No. See .

Regards


Re: [sqlite] Temporary tables

2004-08-20 Thread D. Richard Hipp
Keith Herold wrote:
I am using a temporary table for some results, and I wanted to have the
rowids reset every time the table is used, so I drop the table if it is
already created, and then recreate it and fill it with results .
I thought I could use a SELECT along the lines of
SELECT 1 FROM sqlite_master WHERE (type = 'table') AND ('name =
tblTest') ;
But this doesn't seem to work.  Is there another place to check for a
temporary table's existence (sqlite 2.8.13)?
TEMP tables appear in sqlite_temp_master, not sqlite_master.
--
D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565


[sqlite] Temporary tables

2004-08-20 Thread Keith Herold
I am using a temporary table for some results, and I wanted to have the
rowids reset every time the table is used, so I drop the table if it is
already created, and then recreate it and fill it with results .

I thought I could use a SELECT along the lines of

SELECT 1 FROM sqlite_master WHERE (type = 'table') AND ('name =
tblTest') ;

But this doesn't seem to work.  Is there another place to check for a
temporary table's existence (sqlite 2.8.13)?

--Keith


**
- I'm not a professional; I just get paid to do this.

- Good writing lets the reader think about 'what' 
  was written, not 'how' it was written. 
**