Re: dates in mysql

2006-08-23 Thread Chris
Visolve DB Team wrote: hi MySQL automatically converts a date or time type value to a number (numeric context) & viceversa. When the server starts, it attempts to determine the time zone of the host machine and uses it to set the *system_time_zone* system variable. The value does not chang

Re: dates in mysql

2006-08-23 Thread Visolve DB Team
hi MySQL automatically converts a date or time type value to a number (numeric context) & viceversa. When the server starts, it attempts to determine the time zone of the host machine and uses it to set the system_time_zone system variable. The value does not change thereafter. The global time

Re: Dates & Schedule Problems

2005-08-16 Thread Gleb Paharenko
Hello. I was able to make a query which retrieves dates where the TA is available only for specific TA. To list all TA and periods of time where they're available I wrote a stored procedure which works in MySQL 5. Here is the definition and test data in my tbl_notavailable (I've c

Re: Dates & Schedule Problems

2005-08-14 Thread Peter Brawley
CF, >tbl_NotAvailable { > TAid - int(11) > StartDate - DateTime > EndDate - DataTime >} >Question one: >Now, how can I return a calendar of the dates where the TA is AVAILABLE, >that is the oposite of what is recorded? You may be better off with an explicit calandar table containing slot

Re: Dates & Schedule Problems

2005-08-14 Thread Jasper Bryant-Greene
C.F. Scheidecker Antunes wrote: Question one: Now, how can I return a calendar of the dates where the TA is AVAILABLE, that is the oposite of what is recorded? I want a list of all the available days and times by substracting the non available times recorded in the table. I guess I would need t

Re: Dates after version upgrade

2005-05-11 Thread Eric Bergen
The default timestamp display format changed between mysql 4.0 and 4.1 The easy fix is to add + 0 to all timestamp fields in selects. Like this: select my_ts + 0 from t; You should always read the upgrade notes in the manual. This is very well documented: http://dev.mysql.com/doc/mysql/en/upgradin

Re: Dates range query

2005-01-04 Thread Wolfram Kraus
Brian Menke wrote: Hi everyone, I've always had a challenge working with dates. I'm building an app that needs to query a range of dates. I'm using ASP (for the first time, I usually write in Java). Anyway my date column uses the -00-00 format, which I think is the default format? Is it? Th

Re: dates difference

2003-09-19 Thread Mojtaba Faridzad
select to_days('2003-11-10') - to_days('2003-11-19') - Original Message - From: "Fabio Bernardo" <[EMAIL PROTECTED]> To: "Mysql (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, September 19, 2003 4:13 PM Subject: dates difference I´d like to write a mysql statemant which takes two dates: f

Re: Dates

2003-09-01 Thread Mixo Shiburi
Joseph Bueno wrote: . . . rt3=# select age(now(),'2003-08-26'::timestamp); age 6 days 10:14:43.421275 +++ Thanks, and select age('2003-08-26',resolved) where 'resolved' is a 'timestamp'. -- MySQL General Mailing List For list archi

Re: Dates

2003-09-01 Thread Joseph Bueno
Mixo Shiburi wrote: I am in the process of porting some python scripts to Mysql. Currently, the scripts I have queries a Pg database for entries (made) between certain dates. The python script snippet of the query mainQuery = """ select distinct id,queue,own

Re: DATES and WHERE

2002-08-30 Thread Gerald Clark
2002-09-29 = 1973 I suppose dte>1973. Johnny Withers wrote: >I'm a bit confused here.. dates are not my strong point.. >I have a table with a date column in it (DATE datatype) > >a few values: >mysql> select dte from images\G >*** 1. row *** >dte:

RE: DATES and WHERE

2002-08-29 Thread Mary Stickney
Short answer YES you have to have them why because 2002-08-29 = 1965 -Original Message- From: Johnny Withers [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 1:30 PM To: [EMAIL PROTECTED] Subject: DATES and WHERE I'm a bit confused here.. dates are not my strong point.. I

RE: Dates in a MySQL table

2002-05-29 Thread Roger Baklund
* BUNTER MATTHEW > I'm putting together a table that has dates of reign for a monarch. > > What I eventually want to do is to be able to ask the question : > > Who reigned during 1585? And get an answer of : King Joe > > This info will be outputted in a php form on a web page. > > So if the da

Re: Dates in a MySQL table

2002-05-29 Thread BUNTER MATTHEW
--- Reçu de VITEUR.BUNTERMA 04 72 96 57 77 29/05/02 17.27 2nd attempt. Date: Wed, 29 May 2002 17:17:25 +0200 Subject: Re: Dates in a table Your message cannot be posted because it appears to be

Re: dates times etc

2002-01-13 Thread DL Neil
rc, > off topic topic of mysql databaseperl > > i need to know how to build a linux timestamp from a date given to me in > the following format 01-18-99 (m-d-y) i am using mysql to store this as an > int(11). > > i know php has a mktime function, does anyone know if perl has something > simil

RE: DATES & Optimization

2002-01-11 Thread Robert L. Yelvington
Thanks, Paul. ;) ~rob > -Original Message- > From: Paul DuBois [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 09, 2002 8:22 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: DATES & Optimization > > > At 9:02 -0600 1/9/02, Robert L. Yelvin

Re: DATES & Optimization

2002-01-09 Thread Paul DuBois
At 20:22 -0600 1/9/02, Paul DuBois wrote: >At 9:02 -0600 1/9/02, Robert L. Yelvington wrote: >>Two quick qux for the gurus on the list! >> >>1. If I needed to do date calculations based upon a TIME STAMP field, what's >>the most efficient way to accomplish this with respect to data types (field >>

Re: DATES & Optimization

2002-01-09 Thread Paul DuBois
At 9:02 -0600 1/9/02, Robert L. Yelvington wrote: >Two quick qux for the gurus on the list! > >1. If I needed to do date calculations based upon a TIME STAMP field, what's >the most efficient way to accomplish this with respect to data types (field >types...I already understand how to use the DATE

Re: Dates

2001-08-22 Thread Grigory Bakunov
Date |Wed, 22 Aug 2001 10:49:47 -0700 >From |"Jason Brunk" <[EMAIL PROTECTED]> Hello! JB> i have noticed something, i have ported some asp, and visual basic applications from MSSql to MySql, and i have noticed something with the dates, i have to change my entire date format. Does anyone know

Re: Dates: To Slash or to Hyphen. That is the question

2001-08-16 Thread tj marlin
if you don't want the user to input trash, don't give him the opportunity. on your form, put three two character input fields. label the fields month, day and year, or what ever is the most common order that your user will input a date. put '-' or whatever, between the fields - just to make th

Re: Dates: To Slash or to Hyphen. That is the question

2001-08-16 Thread Van
karel pitra wrote: > > hi, > > first - using php wouldn't it be much easier to use an integer to > store datetime in the database? - i think it's faster and it allows you to > manipulate the date much more easily. > > you could just tokenize the date string (using space,'/' and '-' or any ohter

Re: Dates: To Slash or to Hyphen. That is the question

2001-08-16 Thread karel pitra
hi, first - using php wouldn't it be much easier to use an integer to store datetime in the database? - i think it's faster and it allows you to manipulate the date much more easily. you could just tokenize the date string (using space,'/' and '-' or any ohter characters as the separators) - yo