我有以下代码点火器模型函数,但它返回一个奇怪的链接,不知道如何处理它:
function create_registration_links ()
{
$sql = 'update users_csv_import
set reg_link = md5(username)
where reg_link is null';
$this->db->query($sql);
}
这是我得到的错误:
Error Number: 1406
Data too long for column 'reg_link' at row 25
update users_csv_import set reg_link = md5(username) where reg_link is null