Re: [SQL] newbie: execute an sql script

2000-11-23 Thread Indraneel Majumdar
; [EMAIL PROTECTED] > /****. # Indraneel Majumdar ¡ E-mail: [EMAIL PROTECTED] # # Bioinformatics Unit (EMBNET node), ¡ URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `/

[SQL] reinitialise serial counter

2000-11-07 Thread Indraneel Majumdar
the setval? thanks, Indraneel /. # Indraneel Majumdar ¡ E-mail: [EMAIL PROTECTED] # # Bioinformatics Unit (EMBNET node), ¡ URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics

Re: [SQL] Conditional SQL query

2000-11-05 Thread Indraneel Majumdar
OK, I solved my own problems (Congrats ;-) Sorry for bothering the list. This is what I'm doing: INSERT INTO table SELECT x,x,x where (select count(*) from table where col1='value')=0; any suggestions? thanks, Indraneel On Mon, 6 Nov 2000, Indraneel Majumdar wrote: > N

Re: [SQL] Conditional SQL query

2000-11-05 Thread Indraneel Majumdar
stgreSQL-7.0.2 Now I have one more problem. How do I insert only once if value does not exist? eg: insert into table once select x,x,x where not col1='value' Thanks, Indraneel On Sun, 5 Nov 2000, Cristóvão B. B. Dalla Costa wrote: > > > insert into table select ... where c

Re: [SQL] Conditional SQL query

2000-11-05 Thread Indraneel Majumdar
On Sun, 5 Nov 2000, Marten Feldtmann wrote: > Indraneel Majumdar schrieb: > > > > Hi, > > > > how can I insert a record after checking whether one of the fields has a > > certain value or not? eg: > > > > if table(col1)='value' in

[SQL] Conditional SQL query

2000-11-04 Thread Indraneel Majumdar
e) I tried but this gave an error (so I'm using perl to pass the real tablename for each query) Any help will be great, Indraneel /****. # Indraneel Majumdar ¡ E-mail: [EMAIL PROTECTED] # # Bioinformatics Un

Re: [SQL] Connecting to Postgres from Windows

2000-11-03 Thread Indraneel Majumdar
check your pg_hba.conf file for correct permissions. you need to have host based authenticationenabled for the network/hosts from where you are trying to connect. HTH \Indraneel On Fri, 3 Nov 2000, Umashankar Kotturu wrote: > Hi > > I am connecting to postgres in a java program r

Re: [SQL] Alternate Database Locations

2000-10-26 Thread indraneel
Is that a small d or a capital D? try this: postmaster -D $PGDATA2 -i -p 5431 & \Indraneel On Thu, 26 Oct 2000, Brian C. Doyle wrote: > Okay I am still doing something wrong here > > I set PGDATA2=/home/user1/database > export PGDATA2 > > then I start postmaster > po

Re: [SQL] Alternate Database Locations

2000-10-26 Thread indraneel
AFAIK the port number is compiled in, so you need to recompile. It's there in the docs somewhere. you have to use a different value for --with-pgport option in ./configure . On Wed, 25 Oct 2000, Brian C. Doyle wrote: > > I am still trying to find out how to get multiple postmasters running on

Re: Antw: [SQL] many-many mapping between unique tables

2000-10-16 Thread Indraneel Majumdar
Hi, Thank you very much. Now I know to use serial and not oid. I hope I got the correct message. Thanks, Indraneel On Mon, 16 Oct 2000, Josh Berkus wrote: > Please reference two things: > > 1. Look in the list archives for the last 4 weeks and you will read a > long discussion

Re: Antw: [SQL] many-many mapping between unique tables

2000-10-16 Thread Indraneel Majumdar
? and how can I use this oid in a select statement? Thanks, Indraneel On Mon, 16 Oct 2000, Gerhard Dieringer wrote: > I don't know what type of data your columns x and y contain. If they are, > for example, of type text and contain long strings, then it would be better > to add an int

Re: Antw: [SQL] many-many mapping between unique tables

2000-10-16 Thread Indraneel Majumdar
Thanks, I too came to the same conclusion (due to lack of persistence/patience). Thanks, Indraneel On Mon, 16 Oct 2000, Gerhard Dieringer wrote: > I don't know what type of data your columns x and y contain. If they are, > for example, of type text and contain long strings, then

Re: Antw: [SQL] many-many mapping between unique tables

2000-10-16 Thread Indraneel Majumdar
database design. Is it possible to map the columns without repeating values? \Indraneel On Mon, 16 Oct 2000, Gerhard Dieringer wrote: > I'm not sure if I understand your question. Is it right, that the x(i) are different >values > of an column x in table T1 and the y(i) are differen

[SQL] many-many mapping between unique tables

2000-10-15 Thread Indraneel Majumdar
d I cannot increase overhead by increasing data redundancy. Is there some way to do something about this? \Indraneel /****. # Indraneel Majumdar ¡ E-mail: [EMAIL PROTECTED] # # Bioinformatics Unit (EMBNET node), ¡

Re: [SQL] dynamic object creation

2000-10-13 Thread Indraneel Majumdar
The example is below: On Thu, 12 Oct 2000, Jean-Christophe Boggio wrote: > Hi Indraneel, > > IM> I'm converting a complex flatfile where records are arranged serially. > IM> some fields are as 'n' times repeating blocks of multiple lines. Some > IM> s

Re: [SQL] dynamic object creation

2000-10-13 Thread Indraneel Majumdar
ional arrays, even after I have extended the operators in the contrib section). Also I cannot put field names for individual columns of an array. \Indraneel On Thu, 12 Oct 2000, Mark Volpe wrote: > You may want to think about creating your table like this (for example): > > CRE

[SQL] dynamic object creation

2000-10-12 Thread Indraneel Majumdar
eys the only and best method? Using this is causing a performance hit. If it's any help, what I'm trying to convert are biological databases distributed in 'SRS' flatfile format from ftp.ebi.ac.uk/pub/databases/ Thank you, Indraneel /**

Re: [SQL] Select between two databases

2000-09-24 Thread Indraneel Majumdar
Not working, but thanks anyway. Can anyone point out the relevant area of the source where queries are handled? Thanks, Indraneel On Sun, 24 Sep 2000, Fredrick Bartlett wrote: > Not sure if same can be accomplished with different servers. > Try the following for database's on one s

[SQL] Select between two databases

2000-09-24 Thread Indraneel Majumdar
on different machines under different postmasters. How do I query both simultaneously? Is it possible? Thanks, Indraneel /. # Indraneel Majumdar ¡ E-mail: [EMAIL PROTECTED] # # Bioinformatics Unit (EMBNET

Re: [SQL] select

2000-09-23 Thread Indraneel Majumdar
Hi, AFAIK, you can't enter a null value in a bool field, it has to be 1 or 0. \Indraneel On Sat, 23 Sep 2000, Jeff MacDonald wrote: > how would i select all rows where a boolean value is neither > t nor f.. ? > > ie if someone inserted without setting the boolean tag. &g

[SQL] How do I run a search on array

2000-09-20 Thread Indraneel Majumdar
3","7","9"}} I would also like to know that if I have an array as a large object, is it possible to do a search on it using rows and columns (or by any other way)? thanks, Indraneel /*