| List: | MySQL ODBC | « Previous MessageNext Message » | |
| From: | jbonnett | Date: | July 7 2003 1:14am |
| Subject: | RE: Inserting Date Field | ||
| View as plain text | |||
Here is a fragment of VB where I insert a date/time into MySQL
CurDate = "'" & Format(Now(), "yyyy-mm-dd hh:nn:ss") & "'"
SQL = "UPDATE " & mMilledObject & "s SET ArriveNPLDate = " & CurDate &
"
WHERE ID = "
I append a value for the ID further down in my code to complete the SQL
statement.
John Bonnett
-----Original Message-----
From: Ed Kraft [mailto:ekraft@stripped]
Sent: Friday, 4 July 2003 2:22 AM
To: 'myodbc'
Subject: Inserting Date Field
Hey All,
How do I insert a date field into my mySQL db? I had it working with
Access (using the date()) function. Now after looking here:
http://www.mysql.com/doc/en/Date_and_time_functions.html
I see that it has to be done differently. I've tried using the CURDATE
function, but that doesn't do anything within my ASP pages.
Thanks,
Ed
| Thread | ||
|---|---|---|
| • rs.delete won't fly | joe speigle | 2 Jul |
| • RE: rs.delete won't fly | Mike Hillyer | 2 Jul |
| • RE: rs.delete won't fly | joe speigle | 2 Jul |
| • RE: rs.delete won't fly | Ed Carp | 2 Jul |
| • RE: rs.delete won't fly | joe speigle | 2 Jul |
| • RE: rs.delete won't fly | Ed Carp | 2 Jul |
| • RE: rs.delete won't fly | Mike Hillyer | 2 Jul |
| • Inserting Date Field | Ed Kraft | 3 Jul |
| • RE: Inserting Date Field | Kyle Holder | 3 Jul |
| • RE: Inserting Date Field | Ed Kraft | 3 Jul |
| • RE: Inserting Date Field | Kyle Holder | 3 Jul |
| • RE: Inserting Date Field | Ed Kraft | 3 Jul |
| • RE: Inserting Date Field | Kyle Holder | 3 Jul |
| • RE: Inserting Date Field | Scott Nichols | 3 Jul |
| • RE: rs.delete won't fly | Mike Hillyer | 2 Jul |
| • Re: Inserting Date Field | Michael Viron | 4 Jul |
| • Re: Inserting Date Field | Daniel J. Summers | 5 Jul |
| • RE: Inserting Date Field | jbonnett | 7 Jul |
