mysql create table test foo varchar 255 charset utf8 Query OK rows aff

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
mysql> create table test (foo varchar(255)) charset utf8;
Query OK, 0 rows affected (0.01 sec)
mysql> insert into test values('_Common_'),('A common'),('Access levels');
Query OK, 3 rows affected (0.00 sec)
Records: 3 Duplicates: 0 Warnings: 0
mysql> select foo from test order by foo;
+---------------+
| foo |
+---------------+
| A common |
| Access levels |
| _Common_ |
+---------------+
3 rows in set (0.00 sec)
mysql> select foo from test order by foo desc;
+---------------+
| foo |
+---------------+
| _Common_ |
| Access levels |
| A common |
+---------------+
3 rows in set (0.00 sec)