I have 2 columns, ip_start, ip_start_long
ip_start | ip_start_long
------------------------------------
0.255.255.255 | 16777215
I need to convert ip_start (INET_ATON)
and copy update to ip_start_long for all rows (1 million rows)
How can I do it in php
or phpmyadmin
?
简单的查询将为您完成此操作
update table set ip_start_long = INET_ATON(ip_start);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.