EdgarsK Posted June 16, 2014 Report Share Posted June 16, 2014 vai ir iespējams atkārtot šo tikai ar sql ? $row = select mac_address from device $mac = $row['mac_address']; $mac = base_convert(str_replace('-', '', $mac), 16, 10); ? select base_convert(replace(..)) ? Quote Link to comment Share on other sites More sharing options...
gurkjis Posted June 16, 2014 Report Share Posted June 16, 2014 mysql str_replace: REPLACE(): http://davidwalsh.name/mysql-replace mysql base_convert: CONV(): http://stackoverflow.com/questions/2267422/mysql-equivalent-of-phps-base-convert Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.