By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
10.5.13-MariaDB |
Table | Create Table |
---|---|
t | CREATE TABLE `t` ( `i` int(11) DEFAULT 111, `nm` char(20) NOT NULL DEFAULT substring_index(current_user(),'@',1), `hst` char(20) NOT NULL DEFAULT substring_index(current_user(),'@',-1) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
i | nm | hst |
---|---|---|
1 | u_441103756 | localhost |
2 | u_441103756 | localhost |
3 | u_441103756 | localhost |
1 | Iam | 192.168.1.1 |