MySQL dying?

2012-12-04 Thread Anthony Pace
I have heard that due to Oracle taking over, the OS community is 
shifting to other type of DB's .


Any thoughts?

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql



best way to have a unique key

2011-01-20 Thread Anthony Pace
Due to certain reasons, the company I am doing business with has decided 
that the primary key, for an orders table, be a unique key; however, I 
don't like the possibility of it conflicting if moved to another machine.


What are some pitfalls of using a unique key, that is generated by a 
server side script, rather than by mysql?

What are the best ways to do this?

Please keep in mind this variable will also be displayed on the 
customer's Receipt, but again, since it's random, it doesn't have to 
mean anything.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: best way to have a unique key

2011-01-20 Thread Anthony Pace
Dude, come on.  I know that all primary keys have to be unique; however, 
I was obviously referring to the use of uuid over auto incrementation.


On 1/20/2011 1:36 PM, Michael Dykman wrote:

It is axiomatic in the relational model that a primary must be unique.
  This is not a quirk put forth by your current employer.  Neither
MySQL nor any other RDBMS will allow you to establish a primary key
that is not unique.

  - michael dykman

On Thu, Jan 20, 2011 at 1:32 PM, Anthony Paceanthony.p...@utoronto.ca  wrote:

Due to certain reasons, the company I am doing business with has decided
that the primary key, for an orders table, be a unique key; however, I don't
like the possibility of it conflicting if moved to another machine.

What are some pitfalls of using a unique key, that is generated by a server
side script, rather than by mysql?
What are the best ways to do this?

Please keep in mind this variable will also be displayed on the customer's
Receipt, but again, since it's random, it doesn't have to mean anything.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=mdyk...@gmail.com








--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: best way to have a unique key

2011-01-20 Thread Anthony Pace
I know of uuid() my problem is that there can be conflicts when copying 
the DB to a different machine, or working with sections of the db on 
different machines for load balancing.


On 1/20/2011 1:44 PM, Krishna Chandra Prajapati wrote:

  Please keep in mind this variable will also be displayed on the customer's
  Receipt, but again, since it's random, it doesn't have to mean anything.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: best way to have a unique key

2011-01-20 Thread Anthony Pace
Although I did berate you for your obvious cheek, I will of course 
complement the acuteness of your response.


On 1/20/2011 2:10 PM, Anthony Pace wrote:
Dude, come on.  I know that all primary keys have to be unique; 
however, I was obviously referring to the use of uuid over auto 
incrementation.


On 1/20/2011 1:36 PM, Michael Dykman wrote:

It is axiomatic in the relational model that a primary must be unique.
  This is not a quirk put forth by your current employer.  Neither
MySQL nor any other RDBMS will allow you to establish a primary key
that is not unique.

  - michael dykman

On Thu, Jan 20, 2011 at 1:32 PM, Anthony 
Paceanthony.p...@utoronto.ca  wrote:
Due to certain reasons, the company I am doing business with has 
decided
that the primary key, for an orders table, be a unique key; however, 
I don't

like the possibility of it conflicting if moved to another machine.

What are some pitfalls of using a unique key, that is generated by a 
server

side script, rather than by mysql?
What are the best ways to do this?

Please keep in mind this variable will also be displayed on the 
customer's
Receipt, but again, since it's random, it doesn't have to mean 
anything.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=mdyk...@gmail.com











--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org