Skip to content

Instantly share code, notes, and snippets.

@mozammel
Created December 23, 2014 10:02
Show Gist options
  • Select an option

  • Save mozammel/7d5990a1cf792507d6a2 to your computer and use it in GitHub Desktop.

Select an option

Save mozammel/7d5990a1cf792507d6a2 to your computer and use it in GitHub Desktop.
Fix mobile numbers in scientific notation on a mysql db
update user_profile set mobileno=substring_index(mobileno, 'E', 1)*pow(10,substring_index(mobileno, 'E', -1)) where mobileno like '%E%' AND id>1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment