1
SELECT CAST("12" AS UNSIGNED);
4
SELECT CAST(12 AS UNSIGNED);
7
SELECT CAST(0 AS UNSIGNED);
10
SELECT CAST("0" AS UNSIGNED);
13
SELECT CAST(0.0 AS UNSIGNED);
16
SELECT CAST(0.1 AS UNSIGNED);
19
SELECT CAST(0.4 AS UNSIGNED);
22
SELECT CAST(0.5 AS UNSIGNED);
25
SELECT CAST(0.9 AS UNSIGNED);
28
SELECT CAST(10.1 AS UNSIGNED);
29
CAST(10.1 AS UNSIGNED)
31
SELECT CAST("18446744073709551615" AS UNSIGNED);
32
CAST("18446744073709551615" AS UNSIGNED)
34
SELECT CAST(18446744073709551615 AS UNSIGNED);
35
CAST(18446744073709551615 AS UNSIGNED)
37
SELECT CAST(-1 AS UNSIGNED);
38
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1
39
SELECT CAST(-18446744073709551614 AS UNSIGNED);
40
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614
41
SELECT CAST(-18446744073709551615 AS UNSIGNED);
42
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615
43
SELECT CAST("-1" AS UNSIGNED);
44
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1
45
SELECT CAST("-18446744073709551614" AS UNSIGNED);
46
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614
47
SELECT CAST("-18446744073709551615" AS UNSIGNED);
48
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615
49
SELECT CAST(-1.1 AS UNSIGNED);
50
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1.1
51
SELECT CAST(-18446744073709551614.1 AS UNSIGNED);
52
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614.1
53
SELECT CAST(-18446744073709551615.1 AS UNSIGNED);
54
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615.1
55
SELECT CAST("-1.1" AS UNSIGNED);
56
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1.1
57
SELECT CAST("-18446744073709551614.1" AS UNSIGNED);
58
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614.1
59
SELECT CAST("-18446744073709551615.1" AS UNSIGNED);
60
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615.1
61
SELECT CAST("-18446744073709551615.1" AS UNSIGNED);
62
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615.1
63
SELECT CAST(-(-1) AS UNSIGNED);
64
CAST(-(-1) AS UNSIGNED)