![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
SELECT RX, Alternate, TX, Source, A1, A2, A3, A4, Status, Comments, LastUpdated, Initials FROM maintable WHERE RX = colname SET LastUpdated = NOW() Why does this not work? [...] |
#3
| |||
| |||
|
|
*.oO(walfredo) Another nice feature of MySQL is the column type TIMESTAMP. Field of this type are updated automagically by the db whenever the record is modified. Might be worth a look in this case. HTH Micha * |
#4
| |||
| |||
|
|
Ok cool, that updated when I changed the column type to TIMESTAMP. Thanks! Also, what would I set the default value to be if I wanted it to format like 0000-00-00 00:00:00:00 As it stands, it only returns a string like 20040715092204. |
![]() |
| Thread Tools | |
| Display Modes | |
| |