Re: inserting client time instead of server time
- Date: Tue, 13 May 2008 09:48:19 +0200
- From: "Wieland Gmeiner" <wieland.gmeiner@xxxxxxxxx>
- Subject: Re: inserting client time instead of server time
On Tue, May 13, 2008 at 8:25 AM, Sebastian Mendel
<lists@xxxxxxxxxxxxxxxxxx> wrote:
> is there a way or a function like NOW() except it returns the client time
> and not the server time?
On Linux you could do something like:
mysql -e "insert into tablex (..., clientside_timestamp, ...) values
(..., '$(date +"%F %H:%M:%S")', ...)" dbname
Regards,
Wieland
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=royale@xxxxxxxxxx