Re: Incrementing a "Private" Integer Space

2007-11-24 Thread Chris W
David T. Ashley wrote: I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most efficient way to do this? For example, let's say the table contains (p,q):

Incrementing a "Private" Integer Space

2007-11-24 Thread David T. Ashley
I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most efficient way to do this? For example, let's say the table contains (p,q): 1,1 1,2 1,3 2,1 2,2 2,3 2.4

Re: Default result

2007-11-24 Thread Dan Nelson
In the last episode (Nov 24), Steffan A. Cline said: > Is there anything I am missing that will allow me to return a default row if > the sought after row is not found? > > For example : > > Select * from table1 where column1=1234 > > If 1234 is not found, row1 would be returned instead. > If 12

Default result

2007-11-24 Thread Steffan A. Cline
Is there anything I am missing that will allow me to return a default row if the sought after row is not found? For example : Select * from table1 where column1=1234 If 1234 is not found, row1 would be returned instead. If 1234 is found then that is the row returned. Thanks Steffan -

RE: Unusual sort

2007-11-24 Thread Eric Frazier
Hi, One thought, it might a good idea to make a trigger/procedure that inserts the seprate index field, so you can forget about it from here on. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Saturday, November 24, 2007 11:18 AM To: Jim; mysql@lists.mysql.com Su

RE: Unusual sort

2007-11-24 Thread Martin Gainty
Hi Jim it seems that you cannot create an index with a function soyou will need to establish a separate 12 character column which has all of the URL entries insertedalphabetically in ascending order (fully padded with www. prefix)backup your DBALTER TABLE table ADD TwelveCharacterURL CHAR(12)

RE: IMAGES/PICTURES-MYSQL

2007-11-24 Thread puntapari
Hi! I have seen in this page http://www.blobstreaming.org/ but i think that it´s quite difficult. I want to put only the url of the image, and as you said the pictures o images might be in the server folder, but what is the folder? Thanks. -- View this message in context: http://www.nabble.com

Re: Unusual sort

2007-11-24 Thread Peter Teunissen
On 24-nov-2007, at 0:29, Jim wrote: I have a table containing web site host names, most of them having both a "name.com" and "www.name.com" version, that I'd like sorted in the following manner: axxx.com www.axxx.com bxxx.com www.bxxx.com wxxx.com www.wxxx.com zxxx.com www.zxxx.com Any wa

Re: Designing Table for Both Global and Local Indices

2007-11-24 Thread Santino
Hi, Try to make a table for each company with only one integer field than insert a record and use the id to populate the other table. You can also delete periodically records from there companies tables. Santino At 21:48 -0500 23-11-2007, David T. Ashley wrote: Hi, I am developing a large dat