[SQL] Help datetime

2001-06-12 Thread Tubagus Nizomi
i have problem in datetime my_table (start_date datetime,stop_date datetime); insert into my_table values ('Sun May 13 16:19:27 2001 JAVT','Sun May 13 14:06:13 2001 JAVT') select stop_date-start_date from my_table the result is "@ 2 hours 13 mins 14 secs" but i want result in minutes(integer) n

[SQL] Set Datestyle

2001-05-22 Thread Tubagus Nizomi
Hallo, i have postgres 7.1 in Radhat 6.5 the Datestype default is ISO format where is change default Datestyle to Postgres format ?? i used Set Datestyle to postgres in plsql test#>select now() now 2001-05-21 09:55:36+07 test#>set datestyle to postgres; S

[SQL] MultiByte strings

2001-03-19 Thread Tubagus Nizomi
Hello, i have an error "psql: ERROR: MultiByte strings (MB) must be enabled to use this function" where i must enable MultiByte strings (MB) ?? Nizomi ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriat

[SQL] Error ??

2001-02-27 Thread Tubagus Nizomi
Hello, i have an error : NOTICE: get_groname: group 0 not found getTables(): SELECT failed. Explanation from backend: 'pqReadData() -- backend closed the channel unexpectedly. This probably means the backend terminated abnormally before or while processing the request. what ca

Re: [SQL] update help

2001-01-17 Thread Tubagus Nizomi
update t1 set amount = sum(b.amount) from ts b where a.id=b.id On Thursday 18 January 2001 09:54, Carolyn Wong wrote: > I'd like to know what's the correct SQL statement to do the following: > > updatet1 a > set a.amount = sum(b.amount) > from t2 b > where a.id = b.id

[SQL] Select 'Sunday' in month ??

2001-01-17 Thread Tubagus Nizomi
i want to select date in january where day='Sunday' any idea ?? please help me Nizomi

[SQL] Error in Extrack Database

2000-10-24 Thread Tubagus Nizomi
i have file Dump > 500 MB when i execute " gunzip -c data.dump.gz | psql internal " some error message emerged as follows : FATAL 1: copy: line 2516273, Memory exhausted in AllocSetAlloc() what might be happen with the process ?? how to solve the problem ?? i use sparc sun solaris 2.6, postgre

[SQL] describe table in 7.0.2

2000-07-18 Thread Tubagus Nizomi
Hallo, i have table in postgres 7.0.2 migration from 6.5.3 using pg_upgrade if i \d (table name) in psql ==> "Did not find any relation named" How i describe table in postgres 7.0.2 ? Thanks Nizomi

[SQL] Max date in the month

2000-05-29 Thread Tubagus Nizomi
hallo help me please how can i select maximal date in the month ?? as may = 31 june = 30 thanks Nizomi