Interest Ask. Let's see what does ''*''.
mysql> select ''*'';
+-------+
| ''*'' |
+-------+
| 0 |
+-------+
Create multiple users:
mysql> select * from users;
+------+-------+
| id | name |
+------+-------+
| 1 | joe |
| 2 | moe |
| 3 | shmoe |
| 4 | 4four |
+------+-------+
And check our request:
mysql> select * from users where name = ''*'';
+------+-------+
| id | name |
+------+-------+
| 1 | joe |
| 2 | moe |
| 3 | shmoe |
+------+-------+
Interestingly, user 4 was not selected! But try this:
mysql> select * from users where name = 4;
+------+-------+
| id | name |
+------+-------+
| 4 | 4four |
+------+-------+
So what can we subtract from this?
''*'' somehow it means 0 (I'm not so fluent in mysql string operations, so let's consider this a fact);- MySQL, -, . , varchar , int , ;
- ,
password 0 .