Re: [SQL] 3 tables, slow count(*), order by Seq Scan in Query Plan

2005-05-27 Thread Tony Wasson
On 5/26/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I have 3 tables (2 tables + 1 lookup table that ties them) and running > a straight-forward aggregate count(*) query with a couple of joins > takes about 10 seconds (and I need it to be sub-second or so). > Also, I am wondering

[SQL] SQL command Error: "create table ... Like parentTable including defaults"

2005-05-27 Thread Ying Lu
Greetings, I have a simple question about SQL command : create table tableName1 LIKE parentTable INCLUDING defaults ; I was trying to create table "tableName1" with the same structure as "parentTable" without any data. I got a syntax error: 'syntax error at or near "like" ... ' I guess t

Re: [SQL] SQL command Error: "create table ... Like parentTable

2005-05-27 Thread Bricklen Anderson
Ying Lu wrote: Greetings, I have a simple question about SQL command : create table tableName1 LIKE parentTable INCLUDING defaults ; I was trying to create table "tableName1" with the same structure as "parentTable" without any data. I got a syntax error: 'syntax error at or near "like"

Re: [SQL] SQL command Error: "create table ... Like parentTable including defaults"

2005-05-27 Thread Michael Fuhr
On Fri, May 27, 2005 at 11:48:39AM -0400, Ying Lu wrote: > > create table tableName1 LIKE parentTable INCLUDING defaults ; > > I was trying to create table "tableName1" with the same structure as > "parentTable" without any data. I got a syntax error: > 'syntax error at or near "like" ... '