It has the following common conversions:
1 tick = 100 nanoseconds
= 0.1 microseconds
= 0.0001 milliseconds
= 0.0000001 seconds
1 tick = 100 nanoseconds
= 0.1 microseconds
= 0.0001 milliseconds
= 0.0000001 seconds
TIME
, DATETIME
, and TIMESTAMP
values, with up to microseconds (6 digits) precision:type_name
(fsp
)
, where type_name
is TIME
, DATETIME
, or TIMESTAMP
, and fsp
is the fractional seconds precision. For example:CREATE TABLE t1 (t TIME(3), dt DATETIME(6));
fsp
value, if given, must be in the range 0 to 6. A value of 0 signifies that there is no fractional part. If omitted, the default precision is 0. (This differs from the standard SQL default of 6, for compatibility with previous MySQL versions.)TIME
, DATE
, or TIMESTAMP
value with a fractional seconds part into a column of the same type but having fewer fractional digits results in rounding, as shown in this example:mysql> CREATE TABLE fractest( c1 TIME(2), c2 DATETIME(2), c3 TIMESTAMP(2) );
Query OK, 0 rows affected (0.33 sec)
mysql> INSERT INTO fractest VALUES
> ('17:51:04.777', '2014-09-08 17:51:04.777', '2014-09-08 17:51:04.777');
Query OK, 1 row affected (0.03 sec)
mysql> SELECT * FROM fractest;
+-------------+------------------------+------------------------+
| c1 | c2 | c3 |
+-------------+------------------------+------------------------+
| 17:51:04.78 | 2014-09-08 17:51:04.78 | 2014-09-08 17:51:04.78 |
+-------------+------------------------+------------------------+
1 row in set (0.00 sec)
sql_mode
setting.NOW()
with no argument returns the current date and time with no fractional part, but takes an optional argument from 0 to 6 to specify that the return value includes a fractional seconds part of that many digits.DATE 'str
'
, TIME 'str
'
, and TIMESTAMP 'str
'
, and the ODBC-syntax equivalents. The resulting value includes a trailing fractional seconds part if specified. Previously, the temporal type keyword was ignored and these constructs produced the string value. See Standard SQL and ODBC Date and Time Literals@Html.Partial("_StatePartial")
@Html.Action("_StatePartial")
Html.Partial
directly renders a partial view with the passed model (optionally). I mean directly that it's not going though the MVC lifecycle, only acts like rendering a "template".Html.Action
method. This way your controller action will be invoked, including the routing system, filters, etc.Html.Partial
, for reusing both business logic and view use Html.Action
.