I am trying to create my first stored function on MySQL. In this function I want to return the timestamp of the current date and time with 3 microsecond digits like this:
MySQL 5.6 supports the millisecond precision in the sysdate function.
try
select sysdate(6) will return 2013-04-16 13:47:56.273434
select sysdate(6)
2013-04-16 13:47:56.273434
and
select sysdate(3) will return 2013-04-16 13:47:56.273
select sysdate(3)
2013-04-16 13:47:56.273