Re: Blob data

2007-06-25 Thread Kevin Waterson
This one time, at band camp, Warren Young <[EMAIL PROTECTED]> wrote: Storing arbitrary data in a BLOB column is > tantamount to trying to turn the database into a file system. If you > want a file system, use a file system. What is a file system, if not a database? Kevin -- MySQL General M

Re: Blob data

2007-06-25 Thread Warren Young
Ratheesh K J wrote: I want to know whether this is the right approach. Or should we actually store the attachments in directories and just stiore the attachment path in the database. Databases are designed to handle arbitrarily large numbers of rows of structured data, where each datum is sma

MySQL Proxy 0.5.0 has been released

2007-06-25 Thread Jan Kneschke
Dear MySQL users, We are proud to present a new kid in the block: the MySQL Proxy 0.5.0 alpha. MySQL Proxy is a simple program that sits between your client and MySQL server(s) that can monitor, analyze or transform their communication. Its flexibility allows for a wide variety of use cases, inc

Re: Birthday format

2007-06-25 Thread Mike Blezien
- Original Message - From: "Mike Aubury" <[EMAIL PROTECTED]> To: ; "Mike Blezien" <[EMAIL PROTECTED]> Cc: "Jerry Schwartz" <[EMAIL PROTECTED]> Sent: Monday, June 25, 2007 3:44 PM Subject: Re: Birthday format I might be wrong - but isn't that going to mess up on or around the birthday

Re: Birthday format

2007-06-25 Thread Mike Aubury
I might be wrong - but isn't that going to mess up on or around the birthday because of leap years ? I know its more complex - but something like : select year(curdate())-year("1952-06-24")- (dayofyear(curdate()) thanks, worked prefectly, > > Mike > - Original Message - > Fro

Re: Birthday format

2007-06-25 Thread Mike Blezien
thanks, worked prefectly, Mike - Original Message - From: "Jerry Schwartz" <[EMAIL PROTECTED]> To: "'Mike Blezien'" <[EMAIL PROTECTED]>; "'MySQL List'" Sent: Monday, June 25, 2007 3:01 PM Subject: RE: Birthday format mysql> SELECT FLOOR(54.75); +--+ | FLOOR(54.75) | +--

RE: Birthday format

2007-06-25 Thread Jerry Schwartz
mysql> SELECT FLOOR(54.75); +--+ | FLOOR(54.75) | +--+ | 54 | +--+ 1 row in set (0.05 sec) Regards, Jerry Schwartz The Infoshop by Global Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796 / FAX: 860.674.8341 www.the-info

Re: Birthday format

2007-06-25 Thread Mike Blezien
Chris, - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: "Mike Blezien" <[EMAIL PROTECTED]>; "MySQL List" Sent: Monday, June 25, 2007 2:15 PM Subject: Re: Birthday format we have a simple query to calculate someones birthday: SELECT (TO_DAYS(CURDATE()) - TO_DAYS('195

Re: Birthday format

2007-06-25 Thread Chris Boget
we have a simple query to calculate someones birthday: SELECT (TO_DAYS(CURDATE()) - TO_DAYS('1952-10-06')) / 365; = 54.75 Now is there away, using SQL, to remove the .75 without rounding off. we just want the '54' value. We can do it easy enough with our Perl programming, but was wondering if th

Birthday format

2007-06-25 Thread Mike Blezien
Hello, we have a simple query to calculate someones birthday: SELECT (TO_DAYS(CURDATE()) - TO_DAYS('1952-10-06')) / 365; = 54.75 Now is there away, using SQL, to remove the .75 without rounding off. we just want the '54' value. We can do it easy enough with our Perl programming, but was won

Re: Blob data

2007-06-25 Thread Alex Arul Lurthu
Ratheesh, If you still want to place you blob data in the database, seperate out the blob storage to a seperate table. This will help you alleviate few of your performance and maintenance problems. ~Alex On 6/22/07, Steve Edberg <[EMAIL PROTECTED]> wrote: At 12:11 PM +0530 6/22/07, Ratheesh

can I optimize this query?

2007-06-25 Thread Patrick Aljord
Hey all, I have 2 tables: Profiles(id). Relationships(id,friend_id,befriender_id). friend_id and befriender_id represent profiles ids. I want to find all the profiles that are neither friends neither befrienders with a given profile. this is the query I use with profile id=1: select * from pro

Re: Selecting rows by DATE ranges

2007-06-25 Thread Jørn Dahl-Stamnes
On Monday 25 June 2007 10:32, Mogens Melander wrote: > Looks like you have datetime fields makeing > "2007-01-01 00:00:01" > "2007-01-01". Or use SELECT ... WHERE CONVERT(date,DATE)>"2007-01-01"... if 'date' is a DATETIME field. > > Also using BETWEEN on date-ranges might help. > > On

Re: Selecting rows by DATE ranges

2007-06-25 Thread Mogens Melander
Looks like you have datetime fields makeing "2007-01-01 00:00:01" > "2007-01-01". Also using BETWEEN on date-ranges might help. On Sun, June 24, 2007 02:13, Miguel Cardenas wrote: > Hello list > > I found a little problem with an application am developing, in particular > creating reports by DA

error on slave.

2007-06-25 Thread Ananda Kumar
Hi All, I set this parameters on master & slave SET GLOBAL log_bin_trust_function_creators = 1; Then i applied a script that creates procedure and function. It got created on master, but on slave i am getting below error and procedure and function are not getting created on slave. select ROUTINE_